Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / w3c / webperf / submission / Intel / resource-timing / test_resource_timing_buffer_full_when_populate_entries.html
1 <!DOCTYPE HTML>
2 <html>
3     <head>
4         <meta charset="utf-8" />
5         <title>onresourcetimingbufferfull callback of resource timing</title>
6         <script src="/w3c/webperf/resources/webperftestharnessextension.js"></script>
7         <script>
8             var context = new PerformanceContext(performance);
9             var count = 0;
10             function buffer_full_call_back()
11             {
12                 count++;
13             }
14             context.registerResourceTimingBufferFullCallback(buffer_full_call_back);
15             context.setResourceTimingBufferSize(2);
16         </script>
17         <link rel="author" title="Intel" href="http://www.intel.com/" />
18         <link rel="help" href="http://www.w3.org/TR/resource-timing/#performanceresourcetiming"/>
19         <script src="/w3c/resources/testharness.js"></script>
20         <script src="/w3c/resources/testharnessreport.js"></script>
21         <script src="/w3c/webperf/resources/webperftestharness.js"></script>
22         <script>
23             setup({ explicit_done: true });            
24             function onload_test()
25             {
26                 test_equals(count, 1, "onresourcetimingbufferfull should have been invoked once buffer is full!");
27                 done();                
28             }
29         </script>
30     </head>
31     <body onload=onload_test()>
32         <h1>Description</h1>
33         <p>This test validates the functionality of onresourcetimingbufferfull in resource timing.</p>
34     </body>
35 </html>