W3C home > Mailing lists > Public > public-webapps-testsuite@w3.org > October 2011

Postponed: WebApps testharness.js needs to handle 'EventException'

From: Arthur Barstow <art.barstow@nokia.com>
Date: Mon, 24 Oct 2011 15:39:14 -0400
Message-ID: <4EA5BEE2.2040304@nokia.com>
To: ext Alex Kuang <Alex.Kuang@microsoft.com>
CC: James Graham <jgraham@opera.com>, "public-webapps-testsuite@w3.org" <public-webapps-testsuite@w3.org>
Hi Alex - as I mentioned in [1], until the objections to the publication 
of a D3E CR are resolved I propose this change be postponed.

-Regards, Art Barstow

[1] http://lists.w3.org/Archives/Public/www-dom/2011OctDec/0116.html


On 10/14/11 3:26 PM, ext Alex Kuang wrote:
> While converting some event tests to use the harness, I noticed that function assert_throws(code, func, description) in testharness.js needs to handle 'EventException'. Here is a 'patch' for testharness.js around line ~752 -- James Graham do you agree and if so can you update testharness.js?
>
>                          else if (code in EventException)
>                          {
>                                  expected_type = "EventException";
>                                  required_props[code] = EventException[code];
>                                  required_props.code = EventException[code];
>                                  //As above
>                                  //required_props.name = code;
>                         }
>
> Here are the test cases testing EventException:
> http://w3c-test.org/webapps/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.DISPATCH_REQUEST_ERR.html
> http://w3c-test.org/webapps/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.UNSPECIFIED_EVENT_TYPE_ERR.html
>
> Thanks,
> Alex
>
>
Received on Monday, 24 October 2011 19:40:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 22 April 2014 14:15:58 UTC