Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: LayoutTests/fast/performance/performance-mark-exceptions.html

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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="../../resources/js-test.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 = [
(...skipping 13 matching lines...) Expand all
24 'responseEnd', 24 'responseEnd',
25 'domLoading', 25 'domLoading',
26 'domInteractive', 26 'domInteractive',
27 'domContentLoadedEventStart', 27 'domContentLoadedEventStart',
28 'domContentLoadedEventEnd', 28 'domContentLoadedEventEnd',
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: Failed to execute \'mark\' on \'Performance\': \'' + name + '\' is part of t he PerformanceTiming interface, and cannot be used as a mark name."');
35 }); 35 });
36 </script> 36 </script>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698