OLD | NEW |
1 /* | 1 /* |
2 Distributed under both the W3C Test Suite License [1] and the W3C | 2 Distributed under both the W3C Test Suite License [1] and the W3C |
3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 3 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
4 policies and contribution forms [3]. | 4 policies and contribution forms [3]. |
5 | 5 |
6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 6 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 7 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
8 [3] http://www.w3.org/2004/10/27-testcases | 8 [3] http://www.w3.org/2004/10/27-testcases |
9 */ | 9 */ |
10 | 10 |
11 // | 11 // |
12 // Helper Functions for NavigationTiming W3C tests | 12 // Helper Functions for NavigationTiming W3C tests |
13 // | 13 // |
14 | 14 |
15 var performanceNamespace = window.performance; | 15 var performanceNamespace = self.performance; |
16 var timingAttributes = [ | 16 var timingAttributes = [ |
17 'connectEnd', | 17 'connectEnd', |
18 'connectStart', | 18 'connectStart', |
19 'domComplete', | 19 'domComplete', |
20 'domContentLoadedEventEnd', | 20 'domContentLoadedEventEnd', |
21 'domContentLoadedEventStart', | 21 'domContentLoadedEventStart', |
22 'domInteractive', | 22 'domInteractive', |
23 'domLoading', | 23 'domLoading', |
24 'domainLookupEnd', | 24 'domainLookupEnd', |
25 'domainLookupStart', | 25 'domainLookupStart', |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 function test_greater_or_equals(value, greater_than, msg, properties) | 147 function test_greater_or_equals(value, greater_than, msg, properties) |
148 { | 148 { |
149 wp_test(function () { assert_true(value >= greater_than, msg); }, msg, prope
rties); | 149 wp_test(function () { assert_true(value >= greater_than, msg); }, msg, prope
rties); |
150 } | 150 } |
151 | 151 |
152 function test_not_equals(value, notequals, msg, properties) | 152 function test_not_equals(value, notequals, msg, properties) |
153 { | 153 { |
154 wp_test(function() { assert_true(value !== notequals, msg); }, msg, properti
es); | 154 wp_test(function() { assert_true(value !== notequals, msg); }, msg, properti
es); |
155 } | 155 } |
OLD | NEW |