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

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

Issue 496443008: Transfer pending async script loader to new document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Robustify new test wrt expected output Created 6 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..3e960e7fe0d58222c642cd9d703449a51675f7a0
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<iframe src=resources/append-child-adopt-node-error-frame.html></iframe>
+<iframe src=resources/append-child-adopt-node-error-frame.svg></iframe>
+<script>
+testRunner.waitUntilDone();
+testRunner.dumpAsText();
+
+var count = document.querySelectorAll("iframe").length;
+
+function done() {
+ 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