Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / webtiming-slow-load.php
blobc3e0f55eb3cc400507b0fc9eed9a493afb539730
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 </script>
6 <script src="../../js-test-resources/js-test.js"></script>
7 </head>
8 <body>
9 <p id="description"></p>
10 <div id="console"></div>
11 <script>
12 description("Verifies that requestStart and responseStart are available before the main document has finished loading.");
14 window.performance = window.performance || {};
15 var navigation = performance.navigation || {};
16 var timing = performance.timing || {};
18 shouldBeNonZero("timing.requestStart");
19 shouldBeNonZero("timing.responseStart");
20 shouldBe("timing.responseEnd", "0");
22 </script>
23 <?php
24 echo str_repeat(" ", 100000);
25 flush();
26 ob_flush();
27 sleep(1);
29 </body>
30 </html>