Title: [88149] trunk/LayoutTests
Revision
88149
Author
[email protected]
Date
2011-06-06 02:29:45 -0700 (Mon, 06 Jun 2011)

Log Message

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

        Verify cloning <meter> and <progress> works
        https://bugs.webkit.org/show_bug.cgi?id=61986

        Added test cases for cloning <meter> and <progress>

        * fast/dom/HTMLMeterElement/meter-clone-expected.txt: Added.
        * fast/dom/HTMLMeterElement/meter-clone.html: Added.
        * fast/dom/HTMLProgressElement/progress-clone-expected.txt: Added.
        * fast/dom/HTMLProgressElement/progress-clone.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (88148 => 88149)


--- trunk/LayoutTests/ChangeLog	2011-06-06 08:46:21 UTC (rev 88148)
+++ trunk/LayoutTests/ChangeLog	2011-06-06 09:29:45 UTC (rev 88149)
@@ -1,3 +1,15 @@
+2011-06-02  MORITA Hajime  <[email protected]>
+
+        Verify cloning <meter> and <progress> works
+        https://bugs.webkit.org/show_bug.cgi?id=61986
+        
+        Added test cases for cloning <meter> and <progress>
+
+        * fast/dom/HTMLMeterElement/meter-clone-expected.txt: Added.
+        * fast/dom/HTMLMeterElement/meter-clone.html: Added.
+        * fast/dom/HTMLProgressElement/progress-clone-expected.txt: Added.
+        * fast/dom/HTMLProgressElement/progress-clone.html: Added.
+
 2011-06-06  Mustafizur Rahaman  <[email protected]>
 
         Reviewed by Darin Adler.

Added: trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone-expected.txt (0 => 88149)


--- trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone-expected.txt	2011-06-06 09:29:45 UTC (rev 88149)
@@ -0,0 +1,9 @@
+PASS cloned.value is target.value
+PASS layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild) is layoutTestController.shadowPseudoId(targetShadowRoot.firstChild)
+PASS layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild.firstChild) is layoutTestController.shadowPseudoId(targetShadowRoot.firstChild.firstChild)
+PASS clonedShadowRoot.firstChild.firstChild.style.width is "70%"
+PASS targetShadowRoot.firstChild.firstChild.style.width is "50%"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone-expected.txt
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone.html (0 => 88149)


--- trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone.html	2011-06-06 09:29:45 UTC (rev 88149)
@@ -0,0 +1,35 @@
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<meter id="target" min="0" max="100" value="50" style="-webkit-appearance: none;" />
+<script>
+(function() {
+    target = document.getElementById("target");
+    cloned = target.cloneNode();
+    document.body.insertBefore(cloned, target.nextSibling);
+    
+    if (!window.layoutTestController) {
+        debug("You need layoutTestController to run this test.");
+        return;
+    }
+    
+    targetShadowRoot = layoutTestController.shadowRoot(target);
+    clonedShadowRoot = layoutTestController.shadowRoot(cloned);
+    
+    shouldBe("cloned.value", "target.value");
+    shouldBe("layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild)", "layoutTestController.shadowPseudoId(targetShadowRoot.firstChild)");
+    shouldBe("layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild.firstChild)", "layoutTestController.shadowPseudoId(targetShadowRoot.firstChild.firstChild)");
+    cloned.value = 70;
+    shouldBe("clonedShadowRoot.firstChild.firstChild.style.width", '"70%"');
+    shouldBe("targetShadowRoot.firstChild.firstChild.style.width", '"50%"');
+})();
+var successfullyParsed = true;    
+</script>
+<script src=""
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/dom/HTMLMeterElement/meter-clone.html
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone-expected.txt (0 => 88149)


--- trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone-expected.txt	2011-06-06 09:29:45 UTC (rev 88149)
@@ -0,0 +1,9 @@
+PASS cloned.value is target.value
+PASS layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild) is layoutTestController.shadowPseudoId(targetShadowRoot.firstChild)
+PASS layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild.firstChild) is layoutTestController.shadowPseudoId(targetShadowRoot.firstChild.firstChild)
+PASS clonedShadowRoot.firstChild.firstChild.style.width is "70%"
+PASS targetShadowRoot.firstChild.firstChild.style.width is "50%"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone-expected.txt
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone.html (0 => 88149)


--- trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-clone.html	2011-06-06 09:29:45 UTC (rev 88149)
@@ -0,0 +1,37 @@
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<progress id="target" min="0" max="100" value="50" style="-webkit-appearance: none;" ></progress>
+<script>
+(function() {
+    target = document.getElementById("target");
+    cloned = target.cloneNode();
+    document.body.insertBefore(cloned, target.nextSibling);
+    
+    if (!window.layoutTestController) {
+        debug("You need layoutTestController to run this test.");
+        return;
+    }
+
+    targetShadowRoot = layoutTestController.shadowRoot(target);
+    clonedShadowRoot = layoutTestController.shadowRoot(cloned);
+    
+    shouldBe("cloned.value", "target.value");
+    shouldBe("layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild)", "layoutTestController.shadowPseudoId(targetShadowRoot.firstChild)");
+    shouldBe("layoutTestController.shadowPseudoId(clonedShadowRoot.firstChild.firstChild)", "layoutTestController.shadowPseudoId(targetShadowRoot.firstChild.firstChild)");
+    
+    cloned.value = 70;
+    shouldBe("clonedShadowRoot.firstChild.firstChild.style.width", '"70%"');
+    shouldBe("targetShadowRoot.firstChild.firstChild.style.width", '"50%"');
+    
+})();
+var successfullyParsed = true;
+</script>
+<script src=""
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/dom/HTMLProgressElement/progress-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