Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve tests Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html
diff --git a/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html b/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html
index 42c238839850b0f52c7a7ed9a4fcb93f0f735d54..34dbb7d9ca42590cb1698a5f3bc0d5349a23c683 100644
--- a/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html
@@ -1,18 +1,7 @@
<body>
+<script src="../../js/resources/js-test-pre.js"></script>
<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-function gc()
-{
- if (window.GCController)
- return GCController.collect();
-
- for (var i = 0; i < 10000; i++)
- var s = new String("");
-}
+window.jsTestIsAsync = true;
// Reload multiple times, to make crashing more likely.
var iterationsLeft = 50;
@@ -22,12 +11,11 @@ function test()
frames[0].history.go(0);
} else {
gc();
- document.getElementById("result").innerText = frames[0].document.body.textContent;
- if (window.testRunner)
- testRunner.notifyDone();
+ debug(frames[0].document.body.outerHTML);
+ finishJSTest();
}
}
</script>
-<div id="result">FAIL</div>
<iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
+<script src="../../js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698