| Index: third_party/WebKit/LayoutTests/fast/dom/webtiming-document-open.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/webtiming-document-open.html b/third_party/WebKit/LayoutTests/fast/dom/webtiming-document-open.html
|
| index f2bf8534843ba863753e01d2e8f3ca070fe50efd..e3473fc68f63c5eb5d893e78dff8eee0eb055db4 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/webtiming-document-open.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/webtiming-document-open.html
|
| @@ -4,6 +4,45 @@
|
| <script src="../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/webtiming-document-open.js"></script>
|
| +<script>
|
| +window.performance = window.performance || {};
|
| +var navigation = performance.navigation || {};
|
| +var timing = performance.timing || {};
|
| +var originalTiming = {};
|
| +
|
| +window.addEventListener("load", function() { setTimeout(testTimingWithDocumentOpen, 0); }, false);
|
| +
|
| +function testTimingWithDocumentOpen()
|
| +{
|
| + for (property in timing) {
|
| + originalTiming[property] = timing[property];
|
| + }
|
| +
|
| + document.open();
|
| + document.write("<html>");
|
| + document.write("<head>");
|
| + document.write("<script src=\"../../resources/js-test.js\"></" + "script>");
|
| + document.write("</head>");
|
| + document.write("<body>");
|
| + document.write("</body>");
|
| + document.write("</html>");
|
| + document.close();
|
| +
|
| + description("This test verifies that the NavigationTimings don't change after a document.open().");
|
| +
|
| + setTimeout(finishTest, 0);
|
| +}
|
| +
|
| +function finishTest() {
|
| + var properties = getAllPropertyNames(timing);
|
| + for (var i = 0; i < properties.length; ++i) {
|
| + shouldBe("timing." + properties[i], "originalTiming." + properties[i]);
|
| + }
|
| +
|
| + finishJSTest();
|
| +}
|
| +
|
| +jsTestIsAsync = true;
|
| +</script>
|
| </body>
|
| </html>
|
|
|