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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/w3c/webperf/submission/Intel/resource-timing/test_resource_timing_buffer_full_when_shrink_buffer_size.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>onresourcetimingbufferfull callback of resource timing</title> 5 <title>This test validates the functionality of onresourcetimingbufferfu ll in resource timing.</title>
6 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript> 6 <script src="/w3c/webperf/resources/webperftestharnessextension.js"></sc ript>
7 <script> 7 <script>
8 var context = new PerformanceContext(performance); 8 var context = new PerformanceContext(performance);
9 var count = 0; 9 var count = 0;
10 function buffer_full_call_back() 10 function buffer_full_call_back()
11 { 11 {
12 count++; 12 count++;
13 } 13 }
14 14
15 context.registerResourceTimingBufferFullCallback(buffer_full_call_ba ck); 15 context.registerResourceTimingBufferFullCallback(buffer_full_call_ba ck);
16 </script> 16 </script>
17 <link rel="author" title="Intel" href="http://www.intel.com/" /> 17 <link rel="author" title="Intel" href="http://www.intel.com/" />
18 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/> 18 <link rel="help" href="http://www.w3.org/TR/resource-timing/#performance resourcetiming"/>
19 <script src="/w3c/resources/testharness.js"></script> 19 <script src="/w3c/resources/testharness.js"></script>
20 <script src="/w3c/resources/testharnessreport.js"></script> 20 <script src="/w3c/resources/testharnessreport.js"></script>
21 <script src="/w3c/webperf/resources/webperftestharness.js"></script> 21 <script src="/w3c/webperf/resources/webperftestharness.js"></script>
22 <script> 22 <script>
23 setup({ explicit_done: true }); 23 setup({ explicit_done: true });
24 function onload_test() 24 function onload_test()
25 { 25 {
26 context.setResourceTimingBufferSize(3); 26 context.setResourceTimingBufferSize(3);
27 context.setResourceTimingBufferSize(2); 27 context.setResourceTimingBufferSize(2);
28 test_equals(count, 2, "onresourcetimingbufferfull should be invo ked once the buffer is shrunk to size which is less than or equal to current ent ry number!"); 28 test_equals(count, 2, "onresourcetimingbufferfull should be invo ked once the buffer is shrunk to size which is less than or equal to current ent ry number!");
29 done(); 29 done();
30 } 30 }
31 </script> 31 </script>
32 </head> 32 </head>
33 <body onload=onload_test()> 33 <body onload=onload_test()>
34 <h1>Description</h1>
35 <p>This test validates the functionality of onresourcetimingbufferfull i n resource timing.</p>
36 </body> 34 </body>
37 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698