Index: LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html |
diff --git a/LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html b/LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac17a00e9f093129e1e08385213db44054b2326d |
--- /dev/null |
+++ b/LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<html> |
+<body onload="test();"> |
+<div title="requiresThisElementToReproduce"><div id='host'></div></div> |
+</body> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+function test() { |
+ var host = document.querySelector("#host"); |
+ |
+ var olderShadowRoot = host.createShadowRoot(); |
+ olderShadowRoot.appendChild(document.createElement("content")); |
+ |
+ var youngerShadowRoot = host.createShadowRoot(); |
+ var shadow = document.createElement("shadow"); |
+ var shadowChild = document.createElement("div"); |
+ youngerShadowRoot.appendChild(shadow); |
+ shadow.appendChild(shadowChild); |
+ shadowChild.appendChild(document.createTextNode('CHILD1')); |
+ |
+ document.body.offsetLeft; |
+ shadowChild.appendChild(document.createTextNode('CHILD2')); |
+ |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+} |
+</script> |
+</head> |
+</html> |