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

[Test Harness] Additions to the test harness

From: Anderson Quach <aquach@microsoft.com>
Date: Mon, 24 Jan 2011 23:50:46 +0000
To: "public-html-testsuite@w3.org" <public-html-testsuite@w3.org>
Message-ID: <1E1FF4102DEA7A40AF9CC342044ECE5D432F0695@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
Hi public-html-testsuite,

In the Web Performance WG, we would like to integrate some additional common functionality into the common testharness.js that is being developed in the HTML WG [1]. This functionality currently resides under the resources folder under WebPerf[2].

These helper functions abstract the testing of Booleans, Equality and Greater than. We'd like to add the following helpers to testharness.js:

     // Common helper functions

     function test_true(value, msg) {
         test(function () { assert_true(value, msg); }, msg);

     function test_equals(value, equals, msg) {
         test(function () { assert_equals(value, equals, msg); }, msg);

     function test_greater_than(value, greater_than, msg) {
         test(function () { assert_true(value >= greater_than, msg); }, msg);

I welcome your feedback on this matter. I'd like to get this integrated into the testharness.js file by the end of day Wednesday 1/26/2011.

Anderson Quach
IE Program Manager

[1] http://test.w3.org/html/tests/resources/testharness.js
[2] http://test.w3.org/webperf/tests/resources/webperftestharness.js
Received on Monday, 24 January 2011 23:51:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 24 January 2011 23:51:52 GMT