| Index: third_party/WebKit/LayoutTests/fast/dom/ParentNode/prepend.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/ParentNode/prepend.html b/third_party/WebKit/LayoutTests/fast/dom/ParentNode/prepend.html
|
| index 17dd962af66b12ad76a0cf193e18b6db0d614708..7931cf443cc64265c708c24f1718df479e364432 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/ParentNode/prepend.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/ParentNode/prepend.html
|
| @@ -79,6 +79,13 @@ function test_prepend(node, nodeName) {
|
| assert_equals(parent.childNodes[1].textContent, 'text');
|
| assert_equals(parent.childNodes[2], child);
|
| }, nodeName + '.prepend() with one element and text as argument, on a parent having a child.');
|
| +
|
| + test(function() {
|
| + var parent = node.cloneNode();
|
| + var doc2 = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
|
| + assert_throws('HierarchyRequestError', () => { parent.prepend(doc2, "foo") });
|
| + assert_equals(parent.firstChild, null);
|
| + }, nodeName + '.prepend() with a Document as an argument should throw.');
|
| }
|
|
|
| test_prepend(document.createElement('div'), 'Element');
|
|
|