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

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 13:13:49 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit fb9726d489ad6d25eb701e2b73d9e8b25bdfd416
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Sep 9 08:07:43 2010 +0000

    2010-09-09  Renata Hodovan  <reni at inf.u-szeged.hu>
    
            Reviewed by Dirk Schulze.
    
            SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change.
            https://bugs.webkit.org/show_bug.cgi?id=42244
    
            Adding layout tests for feDistantLight dynamic changes.
            feSpotLight svgAttributeChanged covered the distantLight case as well so we don't need new C++ code.
    
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.checksum: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.png: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.checksum: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.png: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.checksum: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.png: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.checksum: Added.
            * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.png: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.txt: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr.html: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.txt: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr.html: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.txt: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop.html: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.txt: Added.
            * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop.html: Added.
            * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-azimuth-attr.js: Added.
            (executeTest):
            * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-elevation-attr.js: Added.
            (executeTest):
            * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-azimuth-prop.js: Added.
            (executeTest):
            * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-elevation-prop.js: Added.
            (executeTest):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67068 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 7502f2c..a8ece48 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,38 @@
+2010-09-09  Renata Hodovan  <reni at inf.u-szeged.hu>
+
+        Reviewed by Dirk Schulze.
+
+        SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change.
+        https://bugs.webkit.org/show_bug.cgi?id=42244
+
+        Adding layout tests for feDistantLight dynamic changes.
+        feSpotLight svgAttributeChanged covered the distantLight case as well so we don't need new C++ code.
+
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.checksum: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.png: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.checksum: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.png: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.checksum: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.png: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.checksum: Added.
+        * platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.png: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.txt: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr.html: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.txt: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr.html: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.txt: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop.html: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.txt: Added.
+        * svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop.html: Added.
+        * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-azimuth-attr.js: Added.
+        (executeTest):
+        * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-elevation-attr.js: Added.
+        (executeTest):
+        * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-azimuth-prop.js: Added.
+        (executeTest):
+        * svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-elevation-prop.js: Added.
+        (executeTest):
+
 2010-09-08  Yury Semikhatsky  <yurys at chromium.org>
 
         Reviewed by Joseph Pecoraro.
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.checksum b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.checksum
new file mode 100644
index 0000000..7e87a7f
--- /dev/null
+++ b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.checksum
@@ -0,0 +1 @@
+33cd8051f0eed0ad496d4f25dec07c83
\ No newline at end of file
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.png b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.png
new file mode 100644
index 0000000..f45b88a
Binary files /dev/null and b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.png differ
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.checksum b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.checksum
new file mode 100644
index 0000000..c07fd14
--- /dev/null
+++ b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.checksum
@@ -0,0 +1 @@
+fe64d79fc8988734bb56176d3f111875
\ No newline at end of file
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.png b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.png
new file mode 100644
index 0000000..be421c4
Binary files /dev/null and b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.png differ
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.checksum b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.checksum
new file mode 100644
index 0000000..b4c8f38
--- /dev/null
+++ b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.checksum
@@ -0,0 +1 @@
+dbbc21811734665b8118d1786f0a2ec9
\ No newline at end of file
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.png b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.png
new file mode 100644
index 0000000..84dedb6
Binary files /dev/null and b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.png differ
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.checksum b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.checksum
new file mode 100644
index 0000000..8be41ce
--- /dev/null
+++ b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.checksum
@@ -0,0 +1 @@
+33ecd6aabfaa5750a1470b218652d68b
\ No newline at end of file
diff --git a/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.png b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.png
new file mode 100644
index 0000000..3100671
Binary files /dev/null and b/LayoutTests/platform/mac/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.png differ
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.txt b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.txt
new file mode 100644
index 0000000..10f595f
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr-expected.txt
@@ -0,0 +1,13 @@
+SVG 1.1 dynamic update tests
+
+Tests dynamic updates of the 'azimuth' attribute of the SVGFEDistantLightElement object.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS distantLight.getAttribute('azimuth') is "10"
+PASS distantLight.getAttribute('azimuth') is "100"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr.html b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr.html
new file mode 100644
index 0000000..0a68fc8
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-azimuth-attr.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="resources/SVGTestCase.js"></script>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<h1>SVG 1.1 dynamic update tests</h1>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/SVGFEDistantLightElement-dom-azimuth-attr.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.txt b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.txt
new file mode 100644
index 0000000..c379e36
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr-expected.txt
@@ -0,0 +1,13 @@
+SVG 1.1 dynamic update tests
+
+Tests dynamic updates of the 'elevation' attribute of the SVGFEDistantLightElement object.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS distantLight.getAttribute('elevation') is "50"
+PASS distantLight.getAttribute('elevation') is "20"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr.html b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr.html
new file mode 100644
index 0000000..4ceb069
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-dom-elevation-attr.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="resources/SVGTestCase.js"></script>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<h1>SVG 1.1 dynamic update tests</h1>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/SVGFEDistantLightElement-dom-elevation-attr.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.txt b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.txt
new file mode 100644
index 0000000..2b3366c
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop-expected.txt
@@ -0,0 +1,13 @@
+SVG 1.1 dynamic update tests
+
+Tests dynamic updates of the 'azimuth' property of the SVGFEDistantLightElement object
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS distantLight.azimuth.baseVal is 10
+PASS distantLight.azimuth.baseVal is 100
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop.html b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop.html
new file mode 100644
index 0000000..392e0a9
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-azimuth-prop.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="resources/SVGTestCase.js"></script>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<h1>SVG 1.1 dynamic update tests</h1>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/SVGFEDistantLightElement-svgdom-azimuth-prop.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.txt b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.txt
new file mode 100644
index 0000000..9bedecf
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop-expected.txt
@@ -0,0 +1,13 @@
+SVG 1.1 dynamic update tests
+
+Tests dynamic updates of the 'elevation' property of the SVGFEDistantLightElement object
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS distantLight.elevation.baseVal is 50
+PASS distantLight.elevation.baseVal is 20
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop.html b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop.html
new file mode 100644
index 0000000..4915926
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/SVGFEDistantLightELement-svgdom-elevation-prop.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+<script src="resources/SVGTestCase.js"></script>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<h1>SVG 1.1 dynamic update tests</h1>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/SVGFEDistantLightElement-svgdom-elevation-prop.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-azimuth-attr.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-azimuth-attr.js
new file mode 100644
index 0000000..f65de05
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-azimuth-attr.js
@@ -0,0 +1,58 @@
+// [Name] SVGFEDistantLightElement-dom-azimuth-attr.js
+// [Expected rendering result] A shining circle (performed by diffuse lighting) - and a series of PASS messages
+
+description("Tests dynamic updates of the 'azimuth' attribute of the SVGFEDistantLightElement object.");
+createSVGTestCase();
+
+var distantLight = createSVGElement("feDistantLight");
+distantLight.setAttribute("azimuth", "10");
+distantLight.setAttribute("elevation", "20");
+
+var blurElement = createSVGElement("feGaussianBlur");
+blurElement.setAttribute("in", "SourceGraphic");
+blurElement.setAttribute("stdDeviation", "2");
+blurElement.setAttribute("result", "blur");
+
+var gradientElement = createSVGElement("feDiffuseLighting");
+gradientElement.setAttribute("in", "blur");
+gradientElement.setAttribute("surfaceScale", "1");
+gradientElement.setAttribute("diffuseConstant", "1");
+gradientElement.setAttribute("lighting-color", "yellow");
+gradientElement.appendChild(distantLight);
+
+var filterElement = createSVGElement("filter");
+filterElement.setAttribute("id", "myFilter");
+filterElement.setAttribute("filterUnits", "userSpaceOnUse");
+filterElement.setAttribute("x", "0");
+filterElement.setAttribute("y", "0");
+filterElement.setAttribute("width", "200");
+filterElement.setAttribute("height", "200");
+filterElement.appendChild(blurElement);
+filterElement.appendChild(gradientElement);
+
+var defsElement = createSVGElement("defs");
+defsElement.appendChild(filterElement);
+
+rootSVGElement.appendChild(defsElement);
+
+var rectElement = createSVGElement("circle");
+rectElement.setAttribute("width", 200);
+rectElement.setAttribute("height", 200);
+rectElement.setAttribute("cx", "100");
+rectElement.setAttribute("cy", "60");
+rectElement.setAttribute("r", "50");
+rectElement.setAttribute("filter", "url(#myFilter)");
+rootSVGElement.appendChild(rectElement);
+
+shouldBeEqualToString("distantLight.getAttribute('azimuth')", "10");
+
+function executeTest() {
+    distantLight.setAttribute("azimuth", "100");
+    shouldBeEqualToString("distantLight.getAttribute('azimuth')", "100");
+
+    completeTest();
+}
+
+startTest(rectElement, 100, 100);
+
+var successfullyParsed = true;
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-elevation-attr.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-elevation-attr.js
new file mode 100644
index 0000000..c173112
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-dom-elevation-attr.js
@@ -0,0 +1,58 @@
+// [Name] SVGFEDistantLightElement-dom-elevation-attr.js
+// [Expected rendering result] A shining circle (performed by diffuse lighting) - and a series of PASS messages
+
+description("Tests dynamic updates of the 'elevation' attribute of the SVGFEDistantLightElement object.");
+createSVGTestCase();
+
+var distantLight = createSVGElement("feDistantLight");
+distantLight.setAttribute("azimuth", "100");
+distantLight.setAttribute("elevation", "50");
+
+var blurElement = createSVGElement("feGaussianBlur");
+blurElement.setAttribute("in", "SourceGraphic");
+blurElement.setAttribute("stdDeviation", "2");
+blurElement.setAttribute("result", "blur");
+
+var gradientElement = createSVGElement("feDiffuseLighting");
+gradientElement.setAttribute("in", "blur");
+gradientElement.setAttribute("surfaceScale", "1");
+gradientElement.setAttribute("diffuseConstant", "1");
+gradientElement.setAttribute("lighting-color", "yellow");
+gradientElement.appendChild(distantLight);
+
+var filterElement = createSVGElement("filter");
+filterElement.setAttribute("id", "myFilter");
+filterElement.setAttribute("filterUnits", "userSpaceOnUse");
+filterElement.setAttribute("x", "0");
+filterElement.setAttribute("y", "0");
+filterElement.setAttribute("width", "200");
+filterElement.setAttribute("height", "200");
+filterElement.appendChild(blurElement);
+filterElement.appendChild(gradientElement);
+
+var defsElement = createSVGElement("defs");
+defsElement.appendChild(filterElement);
+
+rootSVGElement.appendChild(defsElement);
+
+var rectElement = createSVGElement("circle");
+rectElement.setAttribute("width", 200);
+rectElement.setAttribute("height", 200);
+rectElement.setAttribute("cx", "100");
+rectElement.setAttribute("cy", "60");
+rectElement.setAttribute("r", "50");
+rectElement.setAttribute("filter", "url(#myFilter)");
+rootSVGElement.appendChild(rectElement);
+
+shouldBeEqualToString("distantLight.getAttribute('elevation')", "50");
+
+function executeTest() {
+    distantLight.setAttribute("elevation", "20");
+    shouldBeEqualToString("distantLight.getAttribute('elevation')", "20");
+
+    completeTest();
+}
+
+startTest(rectElement, 100, 100);
+
+var successfullyParsed = true;
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-azimuth-prop.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-azimuth-prop.js
new file mode 100644
index 0000000..97b5203
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-azimuth-prop.js
@@ -0,0 +1,58 @@
+// [Name] SVGFEDistantLightElement-svgdom-azimuth-prop.js
+// [Expected rendering result] A shining circle (performed by diffuse lighting) - and a series of PASS messages
+
+description("Tests dynamic updates of the 'azimuth' property of the SVGFEDistantLightElement object")
+createSVGTestCase();
+
+var distantLight = createSVGElement("feDistantLight");
+distantLight.setAttribute("azimuth", "10");
+distantLight.setAttribute("elevation", "20");
+
+var blurElement = createSVGElement("feGaussianBlur");
+blurElement.setAttribute("in", "SourceGraphic");
+blurElement.setAttribute("stdDeviation", "2");
+blurElement.setAttribute("result", "blur");
+
+var gradientElement = createSVGElement("feDiffuseLighting");
+gradientElement.setAttribute("in", "blur");
+gradientElement.setAttribute("surfaceScale", "1");
+gradientElement.setAttribute("diffuseConstant", "1");
+gradientElement.setAttribute("lighting-color", "yellow");
+gradientElement.appendChild(distantLight);
+
+var filterElement = createSVGElement("filter");
+filterElement.setAttribute("id", "myFilter");
+filterElement.setAttribute("filterUnits", "userSpaceOnUse");
+filterElement.setAttribute("x", "0");
+filterElement.setAttribute("y", "0");
+filterElement.setAttribute("width", "200");
+filterElement.setAttribute("height", "200");
+filterElement.appendChild(blurElement);
+filterElement.appendChild(gradientElement);
+
+var defsElement = createSVGElement("defs");
+defsElement.appendChild(filterElement);
+
+rootSVGElement.appendChild(defsElement);
+
+var rectElement = createSVGElement("circle");
+rectElement.setAttribute("width", 200);
+rectElement.setAttribute("height", 200);
+rectElement.setAttribute("cx", "100");
+rectElement.setAttribute("cy", "60");
+rectElement.setAttribute("r", "50");
+rectElement.setAttribute("filter", "url(#myFilter)");
+rootSVGElement.appendChild(rectElement);
+
+shouldBe("distantLight.azimuth.baseVal", "10");
+
+function executeTest() {
+    distantLight.azimuth.baseVal = 100;
+    shouldBe("distantLight.azimuth.baseVal", "100");
+
+    completeTest();
+}
+
+startTest(rectElement, 100, 100);
+
+var successfullyParsed = true;
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-elevation-prop.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-elevation-prop.js
new file mode 100644
index 0000000..aa774d9
--- /dev/null
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGFEDistantLightELement-svgdom-elevation-prop.js
@@ -0,0 +1,58 @@
+// [Name] SVGFEDistantLightElement-svgdom-elevation-prop.js
+// [Expected rendering result] A shining circle (performed by diffuse lighting) - and a series of PASS messages
+
+description("Tests dynamic updates of the 'elevation' property of the SVGFEDistantLightElement object")
+createSVGTestCase();
+
+var distantLight = createSVGElement("feDistantLight");
+distantLight.setAttribute("azimuth", "100");
+distantLight.setAttribute("elevation", "50");
+
+var blurElement = createSVGElement("feGaussianBlur");
+blurElement.setAttribute("in", "SourceGraphic");
+blurElement.setAttribute("stdDeviation", "2");
+blurElement.setAttribute("result", "blur");
+
+var gradientElement = createSVGElement("feDiffuseLighting");
+gradientElement.setAttribute("in", "blur");
+gradientElement.setAttribute("surfaceScale", "1");
+gradientElement.setAttribute("diffuseConstant", "1");
+gradientElement.setAttribute("lighting-color", "yellow");
+gradientElement.appendChild(distantLight);
+
+var filterElement = createSVGElement("filter");
+filterElement.setAttribute("id", "myFilter");
+filterElement.setAttribute("filterUnits", "userSpaceOnUse");
+filterElement.setAttribute("x", "0");
+filterElement.setAttribute("y", "0");
+filterElement.setAttribute("width", "200");
+filterElement.setAttribute("height", "200");
+filterElement.appendChild(blurElement);
+filterElement.appendChild(gradientElement);
+
+var defsElement = createSVGElement("defs");
+defsElement.appendChild(filterElement);
+
+rootSVGElement.appendChild(defsElement);
+
+var rectElement = createSVGElement("circle");
+rectElement.setAttribute("width", 200);
+rectElement.setAttribute("height", 200);
+rectElement.setAttribute("cx", "100");
+rectElement.setAttribute("cy", "60");
+rectElement.setAttribute("r", "50");
+rectElement.setAttribute("filter", "url(#myFilter)");
+rootSVGElement.appendChild(rectElement);
+
+shouldBe("distantLight.elevation.baseVal", "50");
+
+function executeTest() {
+    distantLight.elevation.baseVal = 20;
+    shouldBe("distantLight.elevation.baseVal", "20");
+
+    completeTest();
+}
+
+startTest(rectElement, 100, 100);
+
+var successfullyParsed = true;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list