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

Unified Diff: LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg

Issue 913473002: Testing a fix to crbug.com/456059. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: refactored Created 5 years, 10 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/move-back-from-non-contextdoc.svg
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg
similarity index 51%
copy from LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg
copy to LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg
index e3ab2f22e51929277f30ff8bae4e78d86c318212..3c6c31c138f7a28b779e054c1019de25d624bf61 100644
--- a/LayoutTests/fast/dom/HTMLScriptElement/resources/append-child-adopt-node-error-frame.svg
+++ b/LayoutTests/fast/dom/HTMLScriptElement/resources/move-back-from-non-contextdoc.svg
@@ -4,13 +4,15 @@
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() { window.top.done(); };
+ script.setAttributeNS("http://www.w3.org/1999/xlink", "href", "does-not-exist.js");
+ document.documentElement.appendChild(script);
+ // otherDoc's contextDocument is document.
+ var otherDoc = document.implementation.createDocument("", null);
+ otherDoc.adoptNode(script);
document.documentElement.appendChild(script);
- var contextDoc = window.top.document.implementation.createDocument("", null);
- contextDoc.adoptNode(document.documentElement);
+ window.top.done();
}
+
init();
</script>
</svg>

Powered by Google App Engine
This is Rietveld 408576698