Reviewed by Adele.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2008 17:45:27 +0000 (17:45 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2008 17:45:27 +0000 (17:45 +0000)
        - add test for r30823 (background-position: inherit)

        * fast/css/background-position-inherit-expected.txt: Added.
        * fast/css/background-position-inherit.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30841 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/css/background-position-inherit-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/background-position-inherit.html [new file with mode: 0644]

index 2f2ab1471136db18e6b006e6afee6fbd8de6fe77..50d880a33a4b8f68d1bfdbd3b9bf267de16906cc 100644 (file)
@@ -1,3 +1,12 @@
+2008-03-06  Dan Bernstein  <mitz@apple.com>
+
+        Reviewed by Adele.
+
+        - add test for r30823 (background-position: inherit)
+
+        * fast/css/background-position-inherit-expected.txt: Added.
+        * fast/css/background-position-inherit.html: Added.
+
 2008-03-05  Justin Garcia  <justin.garcia@apple.com>
 
         Reviewed by Darin.
diff --git a/LayoutTests/fast/css/background-position-inherit-expected.txt b/LayoutTests/fast/css/background-position-inherit-expected.txt
new file mode 100644 (file)
index 0000000..2a0b470
--- /dev/null
@@ -0,0 +1,3 @@
+This tests that background-position: inherit is applied correctly.
+
+PASS
diff --git a/LayoutTests/fast/css/background-position-inherit.html b/LayoutTests/fast/css/background-position-inherit.html
new file mode 100644 (file)
index 0000000..ac597c1
--- /dev/null
@@ -0,0 +1,16 @@
+<div style="background-position: 25% 75%">
+    <div id="target" style="background-position: inherit;"></div>
+</div>
+<p>
+    This tests that <tt>background-position: inherit</tt> is applied correctly.
+</p>
+<p id="result">
+</p>
+<script>
+    if (window.layoutTestController)
+        layoutTestController.dumpAsText();
+
+    var targetBackgroundPosition = getComputedStyle(document.getElementById("target")).backgroundPosition,cssText;
+
+    document.getElementById("result").innerText = targetBackgroundPosition == "25% 75%" ? "PASS" : "FAIL: The inherited value was " + targetBackgroundPosition;
+</script>