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

Unified Diff: LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html

Issue 77863002: Update styleRecalc so that it traverses shadow insertion points in 2 pass algorithms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..50a9d4b4ce668ff7c505a5d686549c750af6e83e
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<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'));
+
+ function addChild() {
+ shadowChild.appendChild(document.createTextNode('CHILD2'));
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+
+ setTimeout(addChild, 0);
esprehn 2013/11/20 09:22:23 Why setTimeout? Are you assuming that a recalcStyl
+}
+</script>
+</head>
+<body onload="test()">
+<div title="requiresThisElementToReproduce"><div id='host'></div></div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698