W3C home > Mailing lists > Public > public-web-perf@w3.org > October 2012

[HighResolutionTime] Test Cases

From: Jatinder Mann <jmann@microsoft.com>
Date: Wed, 3 Oct 2012 18:09:28 +0000
To: "public-web-perf@w3.org" <public-web-perf@w3.org>
Message-ID: <AE5FFD9402CD4F4785E812F2C9929D652580DE88@SN2PRD0310MB383.namprd03.prod.outlook.com>
I have finished reviewing the High Resolution Time test cases:
http://w3c-test.org/webperf/tests/submission/Google/HighResolutionTime/test_cross_frame_start.html
http://w3c-test.org/webperf/tests/submission/W3C/HighResolutionTime/monotonic-clock.html
http://w3c-test.org/webperf/tests/submission/W3C/HighResolutionTime/basic.html

The first two tests, test_cross_frame_start.html and monotonic-clock.html, look good as is. I recommend we move these tests to the approved folder.

For the last test, basic.html, I recommend a minor tweak. For the first test in this test case, we should change the typeof assert to be for "object" instead of the assert_equals(window.performance.toString(), "[object Performance]"); .  The rest of the tests in this test case look good. (I see that the third test had been changed from an assert_equals(window.performance.now.toString().indexOf("function"), 0, ...); to  assert_equals(typeof window.performance.now, "function", ...), which is the correct test).

All of the test cases are passing in IE10 and Firefox 15. There are some failures in Chrome 22, however, that might be attributed to the prefixed now() function. I'll let Tony comment.

Thanks,
Jatinder
Received on Wednesday, 3 October 2012 18:10:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2012 18:10:43 GMT