| 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>
|
|
|