| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="UTF-8" /> | 4 <meta charset="UTF-8" /> |
| 5 <title>window.performance User Timing mark() method is working properly<
/title> | 5 <title>window.performance User Timing mark() method is working properly<
/title> |
| 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> | 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance
-mark"/> | 7 <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance
-mark"/> |
| 8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script src="resources/webperftestharness.js"></script> | 10 <script src="resources/webperftestharness.js"></script> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 ]; | 30 ]; |
| 31 | 31 |
| 32 setup({explicit_done: true}); | 32 setup({explicit_done: true}); |
| 33 | 33 |
| 34 test_namespace(); | 34 test_namespace(); |
| 35 | 35 |
| 36 function onload_test() | 36 function onload_test() |
| 37 { | 37 { |
| 38 // test for existance of User Timing and Performance Timeline interf
ace | 38 // test for existance of User Timing and Performance Timeline interf
ace |
| 39 if (window.performance.mark == undefined || | 39 if (!has_required_interfaces()) |
| 40 window.performance.clearMarks == undefined || | |
| 41 window.performance.measure == undefined || | |
| 42 window.performance.clearMeasures == undefined || | |
| 43 window.performance.getEntriesByName == undefined || | |
| 44 window.performance.getEntriesByType == undefined || | |
| 45 window.performance.getEntries == undefined) | |
| 46 { | 40 { |
| 47 test_true(false, | 41 test_true(false, |
| 48 "The User Timing and Performance Timeline interfaces,
which are required for this test, " + | 42 "The User Timing and Performance Timeline interfaces,
which are required for this test, " + |
| 49 "are defined."); | 43 "are defined."); |
| 50 | 44 |
| 51 done(); | 45 done(); |
| 52 } | 46 } |
| 53 else | 47 else |
| 54 { | 48 { |
| 55 // create first mark | 49 // create first mark |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 <li>"mark1": duplicate of the first mark, used to confirm names
can be re-used</li> | 213 <li>"mark1": duplicate of the first mark, used to confirm names
can be re-used</li> |
| 220 </ul> | 214 </ul> |
| 221 After creating each mark, the existence of these marks is validated b
y calling | 215 After creating each mark, the existence of these marks is validated b
y calling |
| 222 performance.getEntriesByName() (both with and without the entryType p
arameter provided), | 216 performance.getEntriesByName() (both with and without the entryType p
arameter provided), |
| 223 performance.getEntriesByType(), and performance.getEntries() | 217 performance.getEntriesByType(), and performance.getEntries() |
| 224 </p> | 218 </p> |
| 225 | 219 |
| 226 <div id="log"></div> | 220 <div id="log"></div> |
| 227 </body> | 221 </body> |
| 228 </html> | 222 </html> |
| OLD | NEW |