Title: [131907] trunk/LayoutTests
Revision
131907
Author
shin...@chromium.org
Date
2012-10-19 09:45:33 -0700 (Fri, 19 Oct 2012)

Log Message

Should have a test case where InsertionPoint has a ShadowRoot.
https://bugs.webkit.org/show_bug.cgi?id=99822

Reviewed by Dimitri Glazkov.

We didn't have a test case where InsertionPoint has a ShadowRoot. Let's have it not to cause a regression.

* fast/dom/shadow/shadowroot-of-insertionpoint-expected.html: Added.
* fast/dom/shadow/shadowroot-of-insertionpoint.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (131906 => 131907)


--- trunk/LayoutTests/ChangeLog	2012-10-19 16:37:23 UTC (rev 131906)
+++ trunk/LayoutTests/ChangeLog	2012-10-19 16:45:33 UTC (rev 131907)
@@ -1,3 +1,15 @@
+2012-10-19  Shinya Kawanaka  <shin...@chromium.org>
+
+        Should have a test case where InsertionPoint has a ShadowRoot.
+        https://bugs.webkit.org/show_bug.cgi?id=99822
+
+        Reviewed by Dimitri Glazkov.
+
+        We didn't have a test case where InsertionPoint has a ShadowRoot. Let's have it not to cause a regression.
+
+        * fast/dom/shadow/shadowroot-of-insertionpoint-expected.html: Added.
+        * fast/dom/shadow/shadowroot-of-insertionpoint.html: Added.
+
 2012-10-19  Chris Fleizach  <cfleiz...@apple.com>
 
         AX: Refactor accessibility name computation so it's more platform independent

Added: trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint-expected.html (0 => 131907)


--- trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint-expected.html	2012-10-19 16:45:33 UTC (rev 131907)
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+
+<html>
+
+<p>ShadowRoot for InsertionPoint should not be rendered if the InsertionPoint is active, while it should be rendered if not active.</p>
+
+<div id="host"><div>
+    <div>host children</div>
+    <content><div>For Inactive content</div></content>
+</div></div>
+
+</html>

Added: trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint.html (0 => 131907)


--- trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/shadow/shadowroot-of-insertionpoint.html	2012-10-19 16:45:33 UTC (rev 131907)
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+
+<html>
+
+<p>ShadowRoot for InsertionPoint should not be rendered if the InsertionPoint is active, while it should be rendered if not active.</p>
+
+<div id="host">
+    <div>host children</div>
+</div>
+
+<script>
+var shadowRoot = new WebKitShadowRoot(host);
+shadowRoot.innerHTML =
+    '<div>' + 
+        '<content id="active-content" select="div"><div>fallback</div></content>' +
+        '<content select="span"><content id="inactive-content"></content></content>' +
+    '</div>';
+
+var activeContent = shadowRoot.getElementById('active-content');
+var shadowRootForActiveContent = new WebKitShadowRoot(activeContent);
+shadowRootForActiveContent.innerHTML = '<div>For active content</div>';
+
+var inactiveContent = shadowRoot.getElementById('inactive-content');
+var shadowRootForInactiveContent = new WebKitShadowRoot(inactiveContent);
+shadowRootForInactiveContent.innerHTML = '<div>For Inactive content</div>';
+</script>
+
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to