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

Some testharness.js comments

From: Philippe Le Hegaret <plh@w3.org>
Date: Fri, 18 Mar 2011 16:57:26 -0400
To: James Graham <jgraham@opera.com>
Cc: public-test-infra <public-test-infra@w3.org>
Message-ID: <1300481846.10264.268.camel@chacal>
Hi James,

a few comments for your consideration.

This one will fail as expected but no relevant message is generated in
the log:
[[

function throwException() { throw "Exception"; }

test(function() { assert_true(throwException()); }, "throw an exception
within a test");

]]


This one seems to fail on Firefox 4:
[[

test(function() { assert_exists(document, "documentElement"); },
"document.documentElement exists");

]]

It would also be nice to be able to write:
[[

test(function() { assert_exists(document, "createElement"); },
"document.createElement exists");

]]

Thank you,

Philippe
Received on Friday, 18 March 2011 20:57:35 UTC

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