| 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 clearMarks() method is working pro
perly</title> | 5 <title>window.performance User Timing clearMarks() method is working pro
perly</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://127.0.0.1:8000/webperf/specs/UserTiming/#d
om-performance-clearmarks"/> | 7 <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance
-clearmarks"/> |
| 8 <script src="/w3c/resources/testharness.js"></script> | 8 <script src="../../../resources/testharness.js"></script> |
| 9 <script src="/w3c/resources/testharnessreport.js"></script> | 9 <script src="../../../resources/testharnessreport.js"></script> |
| 10 <script src="/w3c/webperf/resources/webperftestharness.js"></script> | 10 <script src="resources/webperftestharness.js"></script> |
| 11 | 11 |
| 12 <script type="text/javascript"> | 12 <script type="text/javascript"> |
| 13 // test marks | 13 // test marks |
| 14 var markName1 = "mark1"; | 14 var markName1 = "mark1"; |
| 15 var markName2 = "mark2"; | 15 var markName2 = "mark2"; |
| 16 var markName3 = "markUndefined"; | 16 var markName3 = "markUndefined"; |
| 17 var markTestDelay = 200; | 17 var markTestDelay = 200; |
| 18 var entries; | 18 var entries; |
| 19 var pass; | 19 var pass; |
| 20 | 20 |
| 21 setup({timeout:1000, explicit_done: true}); | 21 setup({explicit_done: true}); |
| 22 | 22 |
| 23 test_namespace(); | 23 test_namespace(); |
| 24 | 24 |
| 25 function onload_test() | 25 function onload_test() |
| 26 { | 26 { |
| 27 // test for existance of User Timing and Performance Timeline interf
ace | 27 // test for existance of User Timing and Performance Timeline interf
ace |
| 28 if (window.performance.mark == undefined || | 28 if (window.performance.mark == undefined || |
| 29 window.performance.clearMarks == undefined || | 29 window.performance.clearMarks == undefined || |
| 30 window.performance.measure == undefined || | 30 window.performance.measure == undefined || |
| 31 window.performance.clearMeasures == undefined || | 31 window.performance.clearMeasures == undefined || |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 of "markUndefined", a non-existent mark, which shouldn't change the s
tate of the Performance Timeline. Next, | 125 of "markUndefined", a non-existent mark, which shouldn't change the s
tate of the Performance Timeline. Next, |
| 126 it is provided with a name of "mark2", after which, this mark should
no longer be present in the Performance | 126 it is provided with a name of "mark2", after which, this mark should
no longer be present in the Performance |
| 127 Timeline. Finally, performance.clearMarks() is called without any nam
e provided. After this call, no marks | 127 Timeline. Finally, performance.clearMarks() is called without any nam
e provided. After this call, no marks |
| 128 should be present in the Performance Timeline. The state of the Perfo
rmance Timeline is tested with the | 128 should be present in the Performance Timeline. The state of the Perfo
rmance Timeline is tested with the |
| 129 performance.getEntriesByType() and performance.getEntries() methods. | 129 performance.getEntriesByType() and performance.getEntries() methods. |
| 130 </p> | 130 </p> |
| 131 | 131 |
| 132 <div id="log"></div> | 132 <div id="log"></div> |
| 133 </body> | 133 </body> |
| 134 </html> | 134 </html> |
| OLD | NEW |