OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
7 <script> | 7 <script> |
8 description("This tests that 'performance.mark' throws exceptions with r
easonable messages."); | 8 description("This tests that 'performance.mark' throws exceptions with r
easonable messages."); |
9 | 9 |
10 var allTheThings = [ | 10 var allTheThings = [ |
11 'navigationStart', | 11 'navigationStart', |
12 'unloadEventStart', | 12 'unloadEventStart', |
13 'unloadEventEnd', | 13 'unloadEventEnd', |
14 'redirectStart', | 14 'redirectStart', |
15 'redirectEnd', | 15 'redirectEnd', |
16 'fetchStart', | 16 'fetchStart', |
(...skipping 12 matching lines...) Expand all Loading... |
29 'domComplete', | 29 'domComplete', |
30 'loadEventStart', | 30 'loadEventStart', |
31 'loadEventEnd', | 31 'loadEventEnd', |
32 ]; | 32 ]; |
33 allTheThings.forEach(function(name) { | 33 allTheThings.forEach(function(name) { |
34 shouldThrow('window.performance.mark(\'' + name + '\')', '"SyntaxErr
or: \'' + name + '\' is part of the PerformanceTiming interface, and cannot be u
sed as a mark name."'); | 34 shouldThrow('window.performance.mark(\'' + name + '\')', '"SyntaxErr
or: \'' + name + '\' is part of the PerformanceTiming interface, and cannot be u
sed as a mark name."'); |
35 }); | 35 }); |
36 </script> | 36 </script> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |