W3C home > Mailing lists > Public > public-html-testsuite@w3.org > April 2011

Re: Request for review: Outstanding bugs on canvas tests

From: Philip Taylor <pjt47@cam.ac.uk>
Date: Mon, 04 Apr 2011 16:43:55 +0100
Message-ID: <4D99E73B.8020301@cam.ac.uk>
To: Ms2ger <ms2ger@gmail.com>
CC: "public-html-testsuite@w3.org" <public-html-testsuite@w3.org>
Ms2ger wrote:
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=12142
> http://dvcs.w3.org/hg/html/rev/eb60791dc704

How does this case interact with the overload resolution algorithm? I 
don't understand WebIDL at all, but in 
http://dev.w3.org/2006/webapi/WebIDL/#dfn-overload-resolution-algorithm 
it sounds like an argument with ECMAScript value 'undefined' would not 
add object types into the 'types' set, and so it wouldn't match any of 
the drawImage overloads (which all expect some object type as their 
first argument) and should trigger a TypeError. (It'll never reach the 
stage of converting the ES value 'undefined' into an IDL value 'null', 
since it never gets far enough to pick a function to convert the 
argument list for). (I could be completely misunderstanding everything, 
though.)

The changes to the other tests look fine to me.

-- 
Philip Taylor
pjt47@cam.ac.uk
Received on Monday, 4 April 2011 15:44:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 4 April 2011 15:44:27 GMT