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

Side by Side Diff: LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_mark_exceptions.html

Issue 1191043004: Import hr-time and user-timing tests, remove redundant webperf copies (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add idlharness result Created 5 years, 6 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698