[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

zimmermann at webkit.org zimmermann at webkit.org
Wed Dec 22 15:19:09 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit a9a67bce1679b484a7111126e1656b00024d8063
Author: zimmermann at webkit.org <zimmermann at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sun Oct 31 16:04:22 2010 +0000

    2010-10-31  Nikolas Zimmermann  <nzimmermann at rim.com>
    
            Not reviewed.
    
            Convert SVGAnimatedNumber/SVGAnimatedNumberList to the new SVGAnimatedPropertyTearOff concept
            https://bugs.webkit.org/show_bug.cgi?id=48686
    
            Forgot to land SVGAnimatedNumber.js, fails on all bots. Thanks Darin for noticing.
    
            * svg/dom/script-tests/SVGAnimatedNumber.js: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70990 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 8305d6c..6e08f5c 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,14 @@
+2010-10-31  Nikolas Zimmermann  <nzimmermann at rim.com>
+
+        Not reviewed.
+
+        Convert SVGAnimatedNumber/SVGAnimatedNumberList to the new SVGAnimatedPropertyTearOff concept
+        https://bugs.webkit.org/show_bug.cgi?id=48686
+
+        Forgot to land SVGAnimatedNumber.js, fails on all bots. Thanks Darin for noticing.
+
+        * svg/dom/script-tests/SVGAnimatedNumber.js: Added.
+
 2010-10-30  Dimitri Glazkov  <dglazkov at chromium.org>
 
         Unreviewed, rolling out r70984.
diff --git a/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js b/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js
new file mode 100644
index 0000000..42a48a7
--- /dev/null
+++ b/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js
@@ -0,0 +1,29 @@
+description("This test checks the SVGAnimatedNumber API - utilizing the surfaceScale property of SVGFESpecularLightingElement");
+
+var feSpecularLightingElement = document.createElementNS("http://www.w3.org/2000/svg", "feSpecularLighting");
+
+debug("");
+debug("Check initial surfaceScale value");
+shouldBeEqualToString("feSpecularLightingElement.surfaceScale.toString()", "[object SVGAnimatedNumber]");
+shouldBeEqualToString("typeof(feSpecularLightingElement.surfaceScale.baseVal)", "number");
+shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "1");
+
+debug("");
+debug("Check that integers are static, caching value in a local variable and modifying it, should have no effect");
+var numRef = feSpecularLightingElement.surfaceScale.baseVal;
+numRef = 100;
+shouldBe("numRef", "100");
+shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "1");
+
+debug("");
+debug("Check assigning various valid and invalid values");
+shouldBe("feSpecularLightingElement.surfaceScale.baseVal = -1", "-1"); // Negative values are allowed from SVG DOM, but should lead to an error when rendering (disable the filter)
+shouldBe("feSpecularLightingElement.surfaceScale.baseVal = 300", "300");
+shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = 'aString'");
+shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = feSpecularLightingElement");
+
+debug("");
+debug("Check that the surfaceScale value remained 300");
+shouldBe("feSpecularLightingElement.surfaceScale.baseVal = 300", "300");
+
+successfullyParsed = true;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list