W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: Design of the Window test suite (was Re: Window 1.0 test suite)

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 20 Mar 2006 17:46:39 -0800
Message-Id: <3F734FDD-0CF4-4B16-B4C6-763BC680455C@apple.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
To: Cameron McCormack <cam@mcc.id.au>


On Mar 20, 2006, at 3:15 PM, Cameron McCormack wrote:

>
> Maciej Stachowiak:
>> shouldBeFalse("typeof window == 'null'");
>
> The typeof operator never returns "null".  (Actually it could, since
> applying typeof to a host object could return any string, but I guess
> that's unlikely.)  Maybe this should be:
>
>   shouldBeFalse("window === null");

Wow, good catch. I totally forgot that typeof null is "object". Would  
you care to send a patch against the test suite to fix this?

Instructions on getting an anoncvs checkout are at http://dev.w3.org/ 
cvsweb/ , the module you want is 2006/webapi/WindowTestSuite

Or if not, I can fix it.

If you do send a patch, a ChangeLog entry would be appreciated.

Regards,
Maciej
Received on Tuesday, 21 March 2006 01:47:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT