| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| window.performance = window.performance || {}; |
| var navigation = performance.navigation || {}; |
| var timing = performance.timing || {}; |
| window.addEventListener("load", function() { setTimeout(testTimingWithDocumentOpen, 0); }, false); |
| function testTimingWithDocumentOpen() |
| for (property in timing) { |
| originalTiming[property] = timing[property]; |
| document.write("<html>"); |
| document.write("<head>"); |
| document.write("<script src=\"../../resources/js-test-pre.js\"></scr' + 'ipt>"); |
| document.write("</head>"); |
| document.write("<body>"); |
| document.write("<script src=\"../../resources/js-test-post.js\"></scr' + 'ipt>"); |
| document.write("</body>"); |
| document.write("</html>"); |
| description("This test verifies that the NavigationTimings don't change after a document.open()."); |
| setTimeout(finishTest, 0); |
| for (var i = 0; i < keys.length; ++i) { |
| shouldBe("timing." + keys[i], "originalTiming." + keys[i]); |
| <script src="../../resources/js-test-post.js"></script> |