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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_clear_resource_timing_functionality.html

Issue 1920633002: Remove superfluous "*-expected.txt" files in LayoutTests/http/tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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>clearResourceTimings functionality of resource timing</title> 5 <title>This test validates the functionality of clearResourceTimings met hod in resource timing.</title>
6 <link rel="author" title="Intel" href="http://www.intel.com/" /> 6 <link rel="author" title="Intel" href="http://www.intel.com/" />
7 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/> 7 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/>
8 <script src="/w3c/resources/testharness.js"></script> 8 <script src="/w3c/resources/testharness.js"></script>
9 <script src="/w3c/resources/testharnessreport.js"></script> 9 <script src="/w3c/resources/testharnessreport.js"></script>
10 <script src="/w3c/webperf/resources/webperftestharness.js"></script> 10 <script src="/w3c/webperf/resources/webperftestharness.js"></script>
11 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript> 11 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript>
12 <script> 12 <script>
13 setup({ explicit_done: true }); 13 setup({ explicit_done: true });
14 var context = new PerformanceContext(performance); 14 var context = new PerformanceContext(performance);
15 function onload_test() 15 function onload_test()
16 { 16 {
17 test_equals(context.getEntriesByType("resource").length, 4, 4 + " resource timing entries should be stored in this page!"); 17 test_equals(context.getEntriesByType("resource").length, 4, 4 + " resource timing entries should be stored in this page!");
18 context.clearResourceTimings(); 18 context.clearResourceTimings();
19 test_equals(context.getEntriesByType("resource").length, 0, "No resource timing entries should be stored after clearResourceTimings!"); 19 test_equals(context.getEntriesByType("resource").length, 0, "No resource timing entries should be stored after clearResourceTimings!");
20 done(); 20 done();
21 } 21 }
22 </script> 22 </script>
23 </head> 23 </head>
24 <body onload=onload_test()> 24 <body onload=onload_test()>
25 <h1>Description</h1>
26 <p>This test validates the functionality of clearResourceTimings method in resource timing.</p>
27 </body> 25 </body>
28 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698