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

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

Issue 22311011: Improve 'performance.{mark,measure} exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/performance/performance-mark-exceptions-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <script src="../js/resources/js-test-pre.js"></script>
7 <script>
8 description("This tests that 'performance.mark' throws exceptions with r easonable messages.");
9
10 var allTheThings = [
11 'navigationStart',
12 'unloadEventStart',
13 'unloadEventEnd',
14 'redirectStart',
15 'redirectEnd',
16 'fetchStart',
17 'domainLookupStart',
18 'domainLookupEnd',
19 'connectStart',
20 'connectEnd',
21 'secureConnectionStart',
22 'requestStart',
23 'responseStart',
24 'responseEnd',
25 'domLoading',
26 'domInteractive',
27 'domContentLoadedEventStart',
28 'domContentLoadedEventEnd',
29 'domComplete',
30 'loadEventStart',
31 'loadEventEnd',
32 ];
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."');
35 });
36 </script>
37 <script src="../js/resources/js-test-post.js"></script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/performance/performance-mark-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698