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

Side by Side Diff: LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_clear_measures.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 clearMeasures() method is working properly</title> 5 <title>window.performance User Timing clearMeasures() method is working properly</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-clearmeasures"/> 7 <link rel="help" href="http://www.w3.org/TR/user-timing/#dom-performance -clearmeasures"/>
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 // test measures 13 // test measures
14 var measureName1 = "measure1"; 14 var measureName1 = "measure1";
15 var measureName2 = "measure2"; 15 var measureName2 = "measure2";
16 var measureName3 = "measureUndefined"; 16 var measureName3 = "measureUndefined";
17 var measureTestDelay = 200; 17 var measureTestDelay = 200;
18 var measureEntryNames; 18 var measureEntryNames;
19 var entries; 19 var entries;
20 20
21 setup({timeout:1000, explicit_done: true}); 21 setup({explicit_done: true});
22 22
23 test_namespace(); 23 test_namespace();
24 24
25 function onload_test() 25 function onload_test()
26 { 26 {
27 // test for existance of User Timing and Performance Timeline interf ace 27 // test for existance of User Timing and Performance Timeline interf ace
28 if (window.performance.mark == undefined || 28 if (window.performance.mark == undefined ||
29 window.performance.clearMarks == undefined || 29 window.performance.clearMarks == undefined ||
30 window.performance.measure == undefined || 30 window.performance.measure == undefined ||
31 window.performance.clearMeasures == undefined || 31 window.performance.clearMeasures == undefined ||
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 name of "measureUndefined", a non-existent measure, which shouldn't c hange the state of the Performance 127 name of "measureUndefined", a non-existent measure, which shouldn't c hange the state of the Performance
128 Timeline. Next, it is provided with a name of "measure2", after which , this measure should no longer be 128 Timeline. Next, it is provided with a name of "measure2", after which , this measure should no longer be
129 present in the Performance Timeline. Finally, performance.clearMeasur es() is called without any name 129 present in the Performance Timeline. Finally, performance.clearMeasur es() is called without any name
130 provided. After this call, no measures should be present in the Perfo rmance Timeline. The state of the 130 provided. After this call, no measures should be present in the Perfo rmance Timeline. The state of the
131 Performance Timeline is tested with the performance.getEntriesByType( ) and performance.getEntries() methods. 131 Performance Timeline is tested with the performance.getEntriesByType( ) and performance.getEntries() methods.
132 </p> 132 </p>
133 133
134 <div id="log"></div> 134 <div id="log"></div>
135 </body> 135 </body>
136 </html> 136 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698