Title: [88225] trunk/LayoutTests
Revision
88225
Author
[email protected]
Date
2011-06-07 01:33:22 -0700 (Tue, 07 Jun 2011)

Log Message

2011-06-06  MORITA Hajime <[email protected]>

        Reviewed by Kent Tamura.

        Verify cloning <details> and <summary> works.
        https://bugs.webkit.org/show_bug.cgi?id=61985

        * fast/html/details-clone-expected.txt: Added.
        * fast/html/details-clone.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (88224 => 88225)


--- trunk/LayoutTests/ChangeLog	2011-06-07 08:26:25 UTC (rev 88224)
+++ trunk/LayoutTests/ChangeLog	2011-06-07 08:33:22 UTC (rev 88225)
@@ -1,3 +1,13 @@
+2011-06-06  MORITA Hajime <[email protected]>
+
+        Reviewed by Kent Tamura.
+
+        Verify cloning <details> and <summary> works.
+        https://bugs.webkit.org/show_bug.cgi?id=61985
+
+        * fast/html/details-clone-expected.txt: Added.
+        * fast/html/details-clone.html: Added.
+
 2011-06-06  MORITA Hajime  <[email protected]>
 
         Unreviewed attempt to fix flakiness on Snow Leopard.

Added: trunk/LayoutTests/fast/html/details-clone-expected.txt (0 => 88225)


--- trunk/LayoutTests/fast/html/details-clone-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/html/details-clone-expected.txt	2011-06-07 08:33:22 UTC (rev 88225)
@@ -0,0 +1,4 @@
+Test to clone details and summary elements
+
+PASS targetMarkerPseudoId is clonedMarkerPseudoId
+
Property changes on: trunk/LayoutTests/fast/html/details-clone-expected.txt
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/html/details-clone.html (0 => 88225)


--- trunk/LayoutTests/fast/html/details-clone.html	                        (rev 0)
+++ trunk/LayoutTests/fast/html/details-clone.html	2011-06-07 08:33:22 UTC (rev 88225)
@@ -0,0 +1,33 @@
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+<script>
+function runTest()
+{
+    var targetDetails = document.getElementById("targetDetails");
+    var clonedDetails = targetDetails.cloneNode(true);
+    document.body.appendChild(clonedDetails);
+    var targetSummary = document.getElementById("targetSummary");
+    var clonedSummary = targetSummary.cloneNode(true);
+    targetDetails.appendChild(clonedSummary);
+
+    if (!window.layoutTestController)
+        return;
+
+    // On cloned <details>, marker shadow element should be created
+    var targetDetailsSummaryShadow = layoutTestController.shadowRoot(targetDetails.querySelector("summary"));
+    targetMarkerPseudoId = layoutTestController.shadowPseudoId(targetDetailsSummaryShadow.firstChild);
+    var clonedDetailsSummaryShadow = layoutTestController.shadowRoot(clonedDetails.querySelector("summary"));
+    clonedMarkerPseudoId = layoutTestController.shadowPseudoId(clonedDetailsSummaryShadow.firstChild);
+    shouldBe("targetMarkerPseudoId", "clonedMarkerPseudoId");
+}
+</script>
+<body _onload_="runTest()">
+<p id="description">Test to clone details and summary elements</p>
+<div id="console"></div>
+<details id="targetDetails" open>
+   <summary id="targetSummary"></summary>
+</details>
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/html/details-clone.html
___________________________________________________________________

Added: svn:eol-style

_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to