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

Side by Side Diff: LayoutTests/imported/web-platform-tests/user-timing/test_user_timing_exists.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 exists</title> 5 <title>window.performance User Timing exists</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/"/ > 7 <link rel="help" href="http://www.w3.org/TR/user-timing/"/>
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 </head> 12 </head>
13 <body> 13 <body>
14 <h1>Description</h1> 14 <h1>Description</h1>
15 <p>This test validates that all of the methods used to interact with the User Timing API are defined.</p> 15 <p>This test validates that all of the methods used to interact with the User Timing API are defined.</p>
16 16
17 <div id="log"></div> 17 <div id="log"></div>
18 18
19 <script> 19 <script>
20 test_namespace(); 20 test_namespace();
21 21
22 test_true(window.performance.mark !== undefined, "window.performance.mar k is defined."); 22 test_true(window.performance.mark !== undefined, "window.performance.mar k is defined.");
23 test_true(window.performance.clearMarks !== undefined, "window.performan ce.clearMarks is defined."); 23 test_true(window.performance.clearMarks !== undefined, "window.performan ce.clearMarks is defined.");
24 test_true(window.performance.measure !== undefined, "window.performance. measure is defined."); 24 test_true(window.performance.measure !== undefined, "window.performance. measure is defined.");
25 test_true(window.performance.clearMeasures !== undefined, "window.perfor mance.clearMeasures is defined."); 25 test_true(window.performance.clearMeasures !== undefined, "window.perfor mance.clearMeasures is defined.");
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698