root/LayoutTests/http/tests/misc/webtiming-slow-load.php

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script>
</script>
<script src="../../js-test-resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Verifies that requestStart and responseStart are available before the main document has finished loading.");

window.performance = window.performance || {};
var navigation = performance.navigation || {};
var timing = performance.timing || {};

shouldBeNonZero("timing.requestStart");
shouldBeNonZero("timing.responseStart");
shouldBe("timing.responseEnd", "0");

</script>
<?php
    echo str_repeat(" ", 100000);
    flush();
    ob_flush();
    sleep(1);
?>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */