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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html

Issue 229753004: Handle didMoveToNewDocument() for <script> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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-frame.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..8304ec3e7194f19c0635de7a317dbd5a0ae705ef
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-frame.html
@@ -0,0 +1,17 @@
+<body>
+<script>
+function init()
+{
+ document.createElement("canvas").getContext("webgl", null);
+ var epilogue = document.createElement("script");
+ epilogue.src = "should-not-run.js";
+ document.body.appendChild(epilogue);
+ window.top.document.adoptNode(document.documentElement);
+
+ window.top.done();
+}
+
+init();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698