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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.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/resources/append-child-adopt-node-error-frame.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..8d07bd7f308b2c00d63b2c9cddba5d82eb6101b7
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+function init()
+{
+ var script = document.createElement("script");
+ script.src = "does-not-exist.js";
+ script.onerror = function () { console.log('PASS'); };
+ document.body.appendChild(script);
+ window.top.document.adoptNode(document.documentElement);
+
+ window.top.done();
+}
+
+init();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698