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

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

Issue 1912233003: 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, 7 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>read and clear resource timing entry in onresourcetimingbufferful l callback</title> 5 <title>This test validates the behavior of read and clear operation in o nresourcetimingbufferfull callback of 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 resource_timing_buffer_size = 1; 9 var resource_timing_buffer_size = 1;
10 var global_buffer = []; 10 var global_buffer = [];
11 function store_and_clear() 11 function store_and_clear()
12 { 12 {
13 var entry_list = context.getEntriesByType('resource'); 13 var entry_list = context.getEntriesByType('resource');
14 for (var i = 0; i < entry_list.length; ++i) 14 for (var i = 0; i < entry_list.length; ++i)
15 global_buffer.push(entry_list[i]); 15 global_buffer.push(entry_list[i]);
(...skipping 11 matching lines...) Expand all
27 setup({ explicit_done: true }); 27 setup({ explicit_done: true });
28 function onload_test() 28 function onload_test()
29 { 29 {
30 test_equals(context.getEntriesByType('resource').length, 0, "No entry should be stored in resource timing buffer since it's cleared once an item arrived!"); 30 test_equals(context.getEntriesByType('resource').length, 0, "No entry should be stored in resource timing buffer since it's cleared once an item arrived!");
31 test_equals(global_buffer.length, 4, "4 resource timing entries should be moved to global buffer!"); 31 test_equals(global_buffer.length, 4, "4 resource timing entries should be moved to global buffer!");
32 done(); 32 done();
33 } 33 }
34 </script> 34 </script>
35 </head> 35 </head>
36 <body onload=onload_test()> 36 <body onload=onload_test()>
37 <h1>Description</h1>
38 <p>This test validates the behavior of read and clear operation in onres ourcetimingbufferfull callback of resource timing.</p>
39 </body> 37 </body>
40 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698