| 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 throwing the prop
er exceptions</title> | 5 <title>window.performance User Timing mark() method is throwing the prop
er exceptions</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-mark"/> | 7 <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance
-mark"/> |
| 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 // navigation timing attributes | 13 // navigation timing attributes |
| 14 var timingAttributes = [ | 14 var timingAttributes = [ |
| 15 'connectEnd', | 15 'connectEnd', |
| 16 'connectStart', | 16 'connectStart', |
| 17 'domComplete', | 17 'domComplete', |
| 18 'domContentLoadedEventEnd', | 18 'domContentLoadedEventEnd', |
| 19 'domContentLoadedEventStart', | 19 'domContentLoadedEventStart', |
| 20 'domInteractive', | 20 'domInteractive', |
| 21 'domLoading', | 21 'domLoading', |
| 22 'domainLookupEnd', | 22 'domainLookupEnd', |
| 23 'domainLookupStart', | 23 'domainLookupStart', |
| 24 'fetchStart', | 24 'fetchStart', |
| 25 'loadEventEnd', | 25 'loadEventEnd', |
| 26 'loadEventStart', | 26 'loadEventStart', |
| 27 'navigationStart', | 27 'navigationStart', |
| 28 'redirectEnd', | 28 'redirectEnd', |
| 29 'redirectStart', | 29 'redirectStart', |
| 30 'requestStart', | 30 'requestStart', |
| 31 'responseEnd', | 31 'responseEnd', |
| 32 'responseStart', | 32 'responseStart', |
| 33 'unloadEventEnd', | 33 'unloadEventEnd', |
| 34 'unloadEventStart' | 34 'unloadEventStart' |
| 35 ]; | 35 ]; |
| 36 | 36 |
| 37 // test data | 37 // test data |
| 38 var markExceptionThrown = false; | 38 var markExceptionThrown = false; |
| 39 | 39 |
| 40 setup({timeout:1000, explicit_done: true}); | 40 setup({explicit_done: true}); |
| 41 | 41 |
| 42 test_namespace(); | 42 test_namespace(); |
| 43 | 43 |
| 44 function onload_test() | 44 function onload_test() |
| 45 { | 45 { |
| 46 // test for existance of User Timing and Performance Timeline interf
ace | 46 // test for existance of User Timing and Performance Timeline interf
ace |
| 47 if (window.performance.mark == undefined || | 47 if (window.performance.mark == undefined || |
| 48 window.performance.clearMarks == undefined || | 48 window.performance.clearMarks == undefined || |
| 49 window.performance.measure == undefined || | 49 window.performance.measure == undefined || |
| 50 window.performance.clearMeasures == undefined || | 50 window.performance.clearMeasures == undefined || |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 </head> | 96 </head> |
| 97 <body onload="onload_test();"> | 97 <body onload="onload_test();"> |
| 98 <h1>Description</h1> | 98 <h1>Description</h1> |
| 99 <p>This test validates that the performance.mark() method throws a SYNTA
X_ERR exception whenever a navigation | 99 <p>This test validates that the performance.mark() method throws a SYNTA
X_ERR exception whenever a navigation |
| 100 timing attribute is provided for the name parameter. | 100 timing attribute is provided for the name parameter. |
| 101 </p> | 101 </p> |
| 102 | 102 |
| 103 <div id="log"></div> | 103 <div id="log"></div> |
| 104 </body> | 104 </body> |
| 105 </html> | 105 </html> |
| OLD | NEW |