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/resources/append-child-adopt-node-error-frame.svg

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.svg
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg
new file mode 100644
index 0000000000000000000000000000000000000000..c8de415b4a13e46683b970c818ca22b0f0ec357f
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+<script>
+function init()
+{
+ var script = document.createElementNS("http://www.w3.org/2000/svg", "script");
+ script.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "does-not-exist.js");
+
+ script.onerror = function() { console.log('PASS'); };
+ document.documentElement.appendChild(script);
+ window.top.document.adoptNode(document.documentElement);
+ window.top.done();
+}
+init();
+</script>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698