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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 15 Oct 2011 11:39:05 +0900
To: "James Graham" <jgraham@opera.com>, "public-webapps-testsuite@w3.org" <public-webapps-testsuite@w3.org>, "Alex Kuang" <Alex.Kuang@microsoft.com>
Message-ID: <op.v3dgbfu564w2qv@annevk-macbookpro.local>
On Sat, 15 Oct 2011 04:26:50 +0900, Alex Kuang <Alex.Kuang@microsoft.com>  
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

EventException is being removed from implementations. The only thing we  
might possibly want to test is that it does not exist.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Saturday, 15 October 2011 02:39:50 UTC

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