W3C home > Mailing lists > Public > public-test-infra@w3.org > April to June 2011

Re: RfC: WebApps Testing Process

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sun, 10 Apr 2011 16:32:11 -0700
Message-ID: <BANLkTin52ytyy9WTyE2cj2rkSYC_eh6m8Q@mail.gmail.com>
To: James Graham <jgraham@opera.com>
Cc: Aryeh Gregor <Simetrical+w3c@gmail.com>, public-test-infra <public-test-infra@w3.org>
On 4/10/11, James Graham <jgraham@opera.com> wrote:

[...]
>> Just delete it.
>
> Just delete what?
>
The code that handles the NaN case inside of assert_equals.

[...]

>> And again, a test that does that is a mistake. Quite obvious.
>
> How would you write a test that a structured clone correctly preserves
> NaN values?
>
If needed, I would be including to write an
`assert_object_equivalence`. In my style, that'd be more like:

TestRunner.assert( objectsAreEquivalent(actual, expected) );
-- 
Garrett
Received on Sunday, 10 April 2011 23:32:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:06 UTC