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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html

Issue 532643002: Move pending async script to the correct resolved document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expected outputs. Created 6 years, 3 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
Index: LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html b/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html
index 3e960e7fe0d58222c642cd9d703449a51675f7a0..e02151d13d6eafcf7701cae4638515f1478008a0 100644
--- a/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html
+++ b/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html
@@ -5,16 +5,16 @@
testRunner.waitUntilDone();
testRunner.dumpAsText();
+// Don't use js-test.js because this bug is about a failing load of an async
+// <script> of a frame document being moved to its parent document.
+// Hence it makes sense to keep this small and easy to debug when regress.
+console.log("PASS unless crash.");
+
var count = document.querySelectorAll("iframe").length;
function done() {
- count--;
- if (count)
+ if (--count)
return;
- // Don't use js-test.js because this bug is about a failing load of an async
- // <script> of a frame document being moved to its parent document.
- // Hence it makes sense to keep this small and easy to debug when regress.
- console.log("PASS unless crash.");
testRunner.notifyDone();
}
</script>

Powered by Google App Engine
This is Rietveld 408576698