WebCore/ChangeLog

 12010-10-14 Renata Hodovan <reni@inf.u-szeged.hu>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 SVGFEConvolveMatrixElement doesn't support dynamic invalidation, when attributes change.
 6 https://bugs.webkit.org/show_bug.cgi?id=47660
 7
 8 The dynamic changes are captured by the svgAttributeChange function, and invalidate the filter primitive if necessary.
 9 The patch also implements the simple setOrder and setKernelUnitLength methods, respectively defines
 10 setter methods for the these attributes in SVGFEConvolveMatrixElement.idl.
 11
 12 Tests: svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr.html
 13 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr.html
 14 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr.html
 15 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr.html
 16 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.html
 17 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.html
 18 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr.html
 19 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.html
 20 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr.html
 21 svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr.html
 22
 23 * svg/SVGFEConvolveMatrixElement.cpp:
 24 (WebCore::SVGFEConvolveMatrixElement::setOrder):
 25 (WebCore::SVGFEConvolveMatrixElement::setKernelUnitLength):
 26 (WebCore::SVGFEConvolveMatrixElement::svgAttributeChanged):
 27 * svg/SVGFEConvolveMatrixElement.h:
 28 * svg/SVGFEConvolveMatrixElement.idl:
 29
1302010-10-08 Yury Semikhatsky <yurys@chromium.org>
231
332 Reviewed by Pavel Feldman.
69754

WebCore/svg/SVGFEConvolveMatrixElement.cpp

@@void SVGFEConvolveMatrixElement::parseMa
9393 SVGFilterPrimitiveStandardAttributes::parseMappedAttribute(attr);
9494}
9595
96 void SVGFEConvolveMatrixElement::setOrder(float, float)
 96void SVGFEConvolveMatrixElement::setOrder(float x, float y)
9797{
98  // FIXME: Needs an implementation.
 98 setOrderXBaseValue(x);
 99 setOrderYBaseValue(y);
 100 invalidate();
99101}
100102
101 void SVGFEConvolveMatrixElement::setKernelUnitLength(float, float)
 103void SVGFEConvolveMatrixElement::setKernelUnitLength(float x, float y)
102104{
103  // FIXME: Needs an implementation.
 105 setKernelUnitLengthXBaseValue(x);
 106 setKernelUnitLengthYBaseValue(y);
 107 invalidate();
 108}
 109
 110void SVGFEConvolveMatrixElement::svgAttributeChanged(const QualifiedName& attrName)
 111{
 112 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName);
 113
 114 if (attrName == SVGNames::inAttr
 115 || attrName == SVGNames::orderAttr
 116 || attrName == SVGNames::edgeModeAttr
 117 || attrName == SVGNames::kernelMatrixAttr
 118 || attrName == SVGNames::divisorAttr
 119 || attrName == SVGNames::biasAttr
 120 || attrName == SVGNames::targetXAttr
 121 || attrName == SVGNames::targetYAttr
 122 || attrName == SVGNames::kernelUnitLengthAttr
 123 || attrName == SVGNames::preserveAlphaAttr)
 124 invalidate();
104125}
105126
106127PassRefPtr<FilterEffect> SVGFEConvolveMatrixElement::build(SVGFilterBuilder* filterBuilder)
69645

WebCore/svg/SVGFEConvolveMatrixElement.h

@@private:
3838 SVGFEConvolveMatrixElement(const QualifiedName&, Document*);
3939
4040 virtual void parseMappedAttribute(Attribute*);
 41 virtual void svgAttributeChanged(const QualifiedName&);
4142 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*);
4243
4344 DECLARE_ANIMATED_PROPERTY(SVGFEConvolveMatrixElement, SVGNames::inAttr, String, In1, in1)
69645

WebCore/svg/SVGFEConvolveMatrixElement.idl

@@module svg {
4949 readonly attribute SVGAnimatedNumber kernelUnitLengthX;
5050 readonly attribute SVGAnimatedNumber kernelUnitLengthY;
5151 readonly attribute SVGAnimatedBoolean preserveAlpha;
 52
 53 void setKernelUnitLength(in float kernelUnitLengthX, in float kernelUnitLengthY);
 54 void setOrder(in unsigned long orderX, in unsigned long orderY);
5255 };
5356
5457}
69645

LayoutTests/ChangeLog

 12010-10-14 Renata Hodovan <reni@inf.u-szeged.hu>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 SVGFEConvolveMatrixElement doesn't support dynamic invalidation, when attributes change.
 6 https://bugs.webkit.org/show_bug.cgi?id=47660
 7
 8 Adding layout tests for feConvolveMatrix dynamic DOM changes. SVGDOM tests cases will be in the following patch because of patch-size limitation (2M in bugzilla).
 9
 10 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.checksum: Added.
 11 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.png: Added.
 12 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.checksum: Added.
 13 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.png: Added.
 14 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.checksum: Added.
 15 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.png: Added.
 16 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.checksum: Added.
 17 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.png: Added.
 18 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.checksum: Added.
 19 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.png: Added.
 20 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.checksum: Added.
 21 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.png: Added.
 22 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.checksum: Added.
 23 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.png: Added.
 24 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.checksum: Added.
 25 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.png: Added.
 26 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.checksum: Added.
 27 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.png: Added.
 28 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.checksum: Added.
 29 * platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.png: Added.
 30 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.txt: Added.
 31 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr.html: Added.
 32 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.txt: Added.
 33 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr.html: Added.
 34 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.txt: Added.
 35 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr.html: Added.
 36 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.txt: Added.
 37 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr.html: Added.
 38 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.txt: Added.
 39 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.html: Added.
 40 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.txt: Added.
 41 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.html: Added.
 42 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.txt: Added.
 43 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr.html: Added.
 44 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.txt: Added.
 45 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.html: Added.
 46 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.txt: Added.
 47 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr.html: Added.
 48 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.txt: Added.
 49 * svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr.html: Added.
 50 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-bias-attr.js: Added.
 51 (executeTest):
 52 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-divisor-attr.js: Added.
 53 (executeTest):
 54 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-edgeMode-attr.js: Added.
 55 (executeTest):
 56 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-in-attr.js: Added.
 57 (executeTest):
 58 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.js: Added.
 59 (executeTest):
 60 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.js: Added.
 61 (executeTest):
 62 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-order-attr.js: Added.
 63 (executeTest):
 64 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.js: Added.
 65 (executeTest):
 66 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-targetX-attr.js: Added.
 67 (executeTest):
 68 * svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-targetY-attr.js: Added.
 69 (executeTest):
 70
1712010-10-14 Csaba Osztrogonác <ossy@webkit.org>
272
373 Unreviewed fix after r69749.
69754

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.checksum

 1cd515705a1608e27543bb5cf200d6bbe
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.checksum

 1f28a397b2596bbbc30295253a94369c7
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.checksum

 1de86b32df458beeb3e88e401727180c9
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.checksum

 1036065c3a7421ce7768370e330da8cec
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.checksum

 1d12e5a563d0cdcb6c20a2ed782d8f6ca
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.checksum

 15237a75da324ce929390f1580c1a17a8
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.checksum

 1dbf994cdf42d591b4fc979339ff6bbaf
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.checksum

 11ff15d9304aa0e8083e34618a6bbb585
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.checksum

 100a2d5516a9e88249513e313f0f43ad9
02\ No newline at end of file
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.checksum

 17d6f4b622651b47d82e37a9caad367b6
02\ No newline at end of file
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'bias' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('bias') is "0.5"
 9PASS convolveMatrixElement.getAttribute('bias') is "0"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-bias-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'divisor' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('divisor') is "20"
 9PASS convolveMatrixElement.getAttribute('divisor') is "12"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-divisor-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'edgeMode' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('edgeMode') is "wrap"
 9PASS convolveMatrixElement.getAttribute('edgeMode') is "duplicate"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-edgeMode-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'in' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('in') is "SourceAlpha"
 9PASS convolveMatrixElement.getAttribute('in') is "SourceGraphic"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-in-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'kernelMatrix' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('kernelMatrix') is "-2 0 0 0 1 0 0 0 2"
 9PASS convolveMatrixElement.getAttribute('kernelMatrix') is "3 0 3 0 0 0 3 0 3"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'kernelUnitLength' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('kernelUnitLength') is "1"
 9PASS convolveMatrixElement.getAttribute('kernelUnitLength') is "0.05"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'order' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('order') is "2 2"
 9PASS convolveMatrixElement.getAttribute('order') is "3 3"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-order-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'preserveAlpha' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('preserveAlpha') is "false"
 9PASS convolveMatrixElement.getAttribute('preserveAlpha') is "true"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'targetX' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('targetX') is "2"
 9PASS convolveMatrixElement.getAttribute('targetX') is "0"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-targetX-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.txt

 1SVG 1.1 dynamic update tests
 2
 3Tests dynamic updates of the 'targetY' attribute of the SVGFEConvolveMatrixElement object
 4
 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 6
 7
 8PASS convolveMatrixElement.getAttribute('targetY') is "2"
 9PASS convolveMatrixElement.getAttribute('targetY') is "0"
 10PASS successfullyParsed is true
 11
 12TEST COMPLETE
 13
0

LayoutTests/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr.html

 1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
 2<html>
 3<head>
 4<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
 5<script src="resources/SVGTestCase.js"></script>
 6<script src="../../fast/js/resources/js-test-pre.js"></script>
 7</head>
 8<body>
 9<h1>SVG 1.1 dynamic update tests</h1>
 10<p id="description"></p>
 11<div id="console"></div>
 12<script src="script-tests/SVGFEConvolveMatrixElement-dom-targetY-attr.js"></script>
 13</body>
 14</html>
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-bias-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-bias-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'bias' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12convolveMatrixElement.setAttribute("bias", "0.5");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "200");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('bias')", "0.5");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("bias", "0");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('bias')", "0");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-divisor-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-order-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'divisor' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12convolveMatrixElement.setAttribute("divisor", "20");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "200");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('divisor')", "20");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("divisor", "12");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('divisor')", "12");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-edgeMode-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-edgeMode-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'edgeMode' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("targetX", "0");
 12convolveMatrixElement.setAttribute("edgeMode", "wrap");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "200");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('edgeMode')", "wrap");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("edgeMode", "duplicate");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('edgeMode')", "duplicate");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-in-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-in-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'in' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceAlpha");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12
 13var filterElement = createSVGElement("filter");
 14filterElement.setAttribute("id", "myFilter");
 15filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 16filterElement.setAttribute("x", "0");
 17filterElement.setAttribute("y", "0");
 18filterElement.setAttribute("width", "200");
 19filterElement.setAttribute("height", "200");
 20filterElement.appendChild(convolveMatrixElement);
 21
 22var defsElement = createSVGElement("defs");
 23defsElement.appendChild(filterElement);
 24
 25rootSVGElement.appendChild(defsElement);
 26rootSVGElement.setAttribute("width", "700");
 27rootSVGElement.setAttribute("height", "200");
 28
 29var imageElement = createSVGElement("image");
 30imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 31imageElement.setAttribute("x", "0");
 32imageElement.setAttribute("y", "0");
 33imageElement.setAttribute("width", "200");
 34imageElement.setAttribute("height", "200");
 35imageElement.setAttribute("filter", "url(#myFilter)");
 36rootSVGElement.appendChild(imageElement);
 37
 38shouldBeEqualToString("convolveMatrixElement.getAttribute('in')", "SourceAlpha");
 39
 40function executeTest() {
 41 convolveMatrixElement.setAttribute("in", "SourceGraphic");
 42 shouldBeEqualToString("convolveMatrixElement.getAttribute('in')", "SourceGraphic");
 43
 44 completeTest();
 45}
 46
 47startTest(rootSVGElement, 100, 100);
 48
 49var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-kernelMatrix-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'kernelMatrix' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "-2 0 0 0 1 0 0 0 2");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12
 13var filterElement = createSVGElement("filter");
 14filterElement.setAttribute("id", "myFilter");
 15filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 16filterElement.setAttribute("x", "0");
 17filterElement.setAttribute("y", "0");
 18filterElement.setAttribute("width", "200");
 19filterElement.setAttribute("height", "200");
 20filterElement.appendChild(convolveMatrixElement);
 21
 22var defsElement = createSVGElement("defs");
 23defsElement.appendChild(filterElement);
 24
 25rootSVGElement.appendChild(defsElement);
 26rootSVGElement.setAttribute("width", "700");
 27rootSVGElement.setAttribute("height", "200");
 28
 29var imageElement = createSVGElement("image");
 30imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 31imageElement.setAttribute("x", "0");
 32imageElement.setAttribute("y", "0");
 33imageElement.setAttribute("width", "200");
 34imageElement.setAttribute("height", "200");
 35imageElement.setAttribute("filter", "url(#myFilter)");
 36rootSVGElement.appendChild(imageElement);
 37
 38shouldBeEqualToString("convolveMatrixElement.getAttribute('kernelMatrix')", "-2 0 0 0 1 0 0 0 2");
 39
 40function executeTest() {
 41 convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 42 shouldBeEqualToString("convolveMatrixElement.getAttribute('kernelMatrix')", "3 0 3 0 0 0 3 0 3");
 43
 44 completeTest();
 45}
 46
 47startTest(rootSVGElement, 100, 100);
 48
 49var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'kernelUnitLength' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 5 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12convolveMatrixElement.setAttribute("kernelUnitLength", "1");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "250");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('kernelUnitLength')", "1");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("kernelUnitLength", "0.05");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('kernelUnitLength')", "0.05");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-order-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-order-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'order' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "2 2");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12
 13var filterElement = createSVGElement("filter");
 14filterElement.setAttribute("id", "myFilter");
 15filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 16filterElement.setAttribute("x", "0");
 17filterElement.setAttribute("y", "0");
 18filterElement.setAttribute("width", "200");
 19filterElement.setAttribute("height", "200");
 20filterElement.appendChild(convolveMatrixElement);
 21
 22var defsElement = createSVGElement("defs");
 23defsElement.appendChild(filterElement);
 24
 25rootSVGElement.appendChild(defsElement);
 26rootSVGElement.setAttribute("width", "700");
 27rootSVGElement.setAttribute("height", "200");
 28
 29var imageElement = createSVGElement("image");
 30imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 31imageElement.setAttribute("x", "0");
 32imageElement.setAttribute("y", "0");
 33imageElement.setAttribute("width", "200");
 34imageElement.setAttribute("height", "200");
 35imageElement.setAttribute("filter", "url(#myFilter)");
 36rootSVGElement.appendChild(imageElement);
 37
 38shouldBeEqualToString("convolveMatrixElement.getAttribute('order')", "2 2");
 39
 40function executeTest() {
 41 convolveMatrixElement.setAttribute("order", "3 3");
 42 shouldBeEqualToString("convolveMatrixElement.getAttribute('order')", "3 3");
 43
 44 completeTest();
 45}
 46
 47startTest(rootSVGElement, 100, 100);
 48
 49var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr.js

 1// [Name] SVGFEConvolveMatrixElement-preserveAlpha-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'preserveAlpha' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "-2 0 0 0 1 0 0 0 2");
 11convolveMatrixElement.setAttribute("preserveAlpha", "false");
 12
 13var filterElement = createSVGElement("filter");
 14filterElement.setAttribute("id", "myFilter");
 15filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 16filterElement.setAttribute("x", "0");
 17filterElement.setAttribute("y", "0");
 18filterElement.setAttribute("width", "200");
 19filterElement.setAttribute("height", "200");
 20filterElement.appendChild(convolveMatrixElement);
 21
 22var defsElement = createSVGElement("defs");
 23defsElement.appendChild(filterElement);
 24
 25rootSVGElement.appendChild(defsElement);
 26rootSVGElement.setAttribute("width", "700");
 27rootSVGElement.setAttribute("height", "200");
 28
 29var imageElement = createSVGElement("image");
 30imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 31imageElement.setAttribute("x", "0");
 32imageElement.setAttribute("y", "0");
 33imageElement.setAttribute("width", "200");
 34imageElement.setAttribute("height", "200");
 35imageElement.setAttribute("filter", "url(#myFilter)");
 36rootSVGElement.appendChild(imageElement);
 37
 38shouldBeEqualToString("convolveMatrixElement.getAttribute('preserveAlpha')", "false");
 39
 40function executeTest() {
 41 convolveMatrixElement.setAttribute("preserveAlpha", "true");
 42 shouldBeEqualToString("convolveMatrixElement.getAttribute('preserveAlpha')", "true");
 43
 44 completeTest();
 45}
 46
 47startTest(rootSVGElement, 100, 100);
 48
 49var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-targetX-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-targetX-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'targetX' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12convolveMatrixElement.setAttribute("targetX", "2");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "200");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('targetX')", "2");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("targetX", "0");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('targetX')", "0");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-targetY-attr.js

 1// [Name] SVGFEConvolveMatrixElement-dom-targetY-attr.js
 2// [Expected rendering result] An image with feConvolveMatrix filter - and a series of PASS messages
 3
 4description("Tests dynamic updates of the 'targetY' attribute of the SVGFEConvolveMatrixElement object")
 5createSVGTestCase();
 6
 7var convolveMatrixElement = createSVGElement("feConvolveMatrix");
 8convolveMatrixElement.setAttribute("in", "SourceGraphic");
 9convolveMatrixElement.setAttribute("order", "3.9");
 10convolveMatrixElement.setAttribute("kernelMatrix", "3 0 3 0 0 0 3 0 3");
 11convolveMatrixElement.setAttribute("preserveToAlpha", "true");
 12convolveMatrixElement.setAttribute("targetY", "2");
 13
 14var filterElement = createSVGElement("filter");
 15filterElement.setAttribute("id", "myFilter");
 16filterElement.setAttribute("filterUnits", "userSpaceOnUse");
 17filterElement.setAttribute("x", "0");
 18filterElement.setAttribute("y", "0");
 19filterElement.setAttribute("width", "200");
 20filterElement.setAttribute("height", "200");
 21filterElement.appendChild(convolveMatrixElement);
 22
 23var defsElement = createSVGElement("defs");
 24defsElement.appendChild(filterElement);
 25
 26rootSVGElement.appendChild(defsElement);
 27rootSVGElement.setAttribute("width", "700");
 28rootSVGElement.setAttribute("height", "200");
 29
 30var imageElement = createSVGElement("image");
 31imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/convolveImage.png");
 32imageElement.setAttribute("x", "0");
 33imageElement.setAttribute("y", "0");
 34imageElement.setAttribute("width", "200");
 35imageElement.setAttribute("height", "200");
 36imageElement.setAttribute("filter", "url(#myFilter)");
 37rootSVGElement.appendChild(imageElement);
 38
 39shouldBeEqualToString("convolveMatrixElement.getAttribute('targetY')", "2");
 40
 41function executeTest() {
 42 convolveMatrixElement.setAttribute("targetY", "0");
 43 shouldBeEqualToString("convolveMatrixElement.getAttribute('targetY')", "0");
 44
 45 completeTest();
 46}
 47
 48startTest(rootSVGElement, 100, 100);
 49
 50var successfullyParsed = true;
0

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-bias-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-divisor-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-edgeMode-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-in-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelMatrix-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-kernelUnitLength-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-order-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-preserveAlpha-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetX-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.

LayoutTests/platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-dom-targetY-attr-expected.png

INVALID: Image lacks a checksum. This will fail with a MISSING error in run-webkit-tests. Always generate new png files using run-webkit-tests.