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: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 21 Mar 2006 10:15:40 +1100
To: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <20060320231540.GC12822@port.mcc.id.au>

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");

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org
Received on Monday, 20 March 2006 23:15:44 GMT

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