Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-type-prop.js

Issue 1051183002: This CL is that fixed typo for test-cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-tableValues-prop.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // [Name] SVGFEComponentTransferElement-svgdom-type-prop.js 1 // [Name] SVGFEComponentTransferElement-svgdom-type-prop.js
2 // [Expected rendering result] An image with feComponentTransfer filter - and a series of PASS messages 2 // [Expected rendering result] An image with feComponentTransfer filter - and a series of PASS messages
3 3
4 description("Tests dynamic updates of the 'type' property of the SVGFEComponentT ransferElement object") 4 description("Tests dynamic updates of the 'type' property of the SVGFEComponentT ransferElement object")
5 createSVGTestCase(); 5 createSVGTestCase();
6 6
7 var feRFunc = createSVGElement("feFuncR"); 7 var feRFunc = createSVGElement("feFuncR");
8 feRFunc.setAttribute("type", "gamma"); 8 feRFunc.setAttribute("type", "gamma");
9 feRFunc.setAttribute("amplitude", "10"); 9 feRFunc.setAttribute("amplitude", "10");
10 10
11 var feGFunc = createSVGElement("feFuncG"); 11 var feGFunc = createSVGElement("feFuncG");
12 feGFunc.setAttribute("type", "gamma"); 12 feGFunc.setAttribute("type", "gamma");
13 feGFunc.setAttribute("amplitude", "10"); 13 feGFunc.setAttribute("amplitude", "10");
14 14
15 var feBFunc = createSVGElement("feFuncB"); 15 var feBFunc = createSVGElement("feFuncB");
16 feBFunc.setAttribute("type", "gamma"); 16 feBFunc.setAttribute("type", "gamma");
17 feBFunc.setAttribute("amplitude", "110"); 17 feBFunc.setAttribute("amplitude", "110");
18 18
19 var feAFunc = createSVGElement("feFuncA"); 19 var feAFunc = createSVGElement("feFuncA");
20 feAFunc.setAttribute("type", "gamma"); 20 feAFunc.setAttribute("type", "gamma");
21 feAFunc.setAttribute("amplitude", "110"); 21 feAFunc.setAttribute("amplitude", "110");
22 22
23 var feCompnentTransferElement = createSVGElement("feComponentTransfer"); 23 var feComponentTransferElement = createSVGElement("feComponentTransfer");
24 feCompnentTransferElement.appendChild(feRFunc); 24 feComponentTransferElement.appendChild(feRFunc);
25 feCompnentTransferElement.appendChild(feGFunc); 25 feComponentTransferElement.appendChild(feGFunc);
26 feCompnentTransferElement.appendChild(feBFunc); 26 feComponentTransferElement.appendChild(feBFunc);
27 feCompnentTransferElement.appendChild(feAFunc); 27 feComponentTransferElement.appendChild(feAFunc);
28 28
29 var compTranFilter = createSVGElement("filter"); 29 var compTranFilter = createSVGElement("filter");
30 compTranFilter.setAttribute("id", "compTranFilter"); 30 compTranFilter.setAttribute("id", "compTranFilter");
31 compTranFilter.setAttribute("filterUnits", "objectBoundingBox"); 31 compTranFilter.setAttribute("filterUnits", "objectBoundingBox");
32 compTranFilter.setAttribute("x", "0%"); 32 compTranFilter.setAttribute("x", "0%");
33 compTranFilter.setAttribute("y", "0%"); 33 compTranFilter.setAttribute("y", "0%");
34 compTranFilter.setAttribute("width", "100%"); 34 compTranFilter.setAttribute("width", "100%");
35 compTranFilter.setAttribute("height", "100%"); 35 compTranFilter.setAttribute("height", "100%");
36 compTranFilter.appendChild(feCompnentTransferElement); 36 compTranFilter.appendChild(feComponentTransferElement);
37 37
38 var defsElement = createSVGElement("defs"); 38 var defsElement = createSVGElement("defs");
39 defsElement.appendChild(compTranFilter); 39 defsElement.appendChild(compTranFilter);
40 rootSVGElement.appendChild(defsElement); 40 rootSVGElement.appendChild(defsElement);
41 41
42 var imageElement = createSVGElement("image"); 42 var imageElement = createSVGElement("image");
43 imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/str uct-image-01.png"); 43 imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/str uct-image-01.png");
44 imageElement.setAttribute("width", "400"); 44 imageElement.setAttribute("width", "400");
45 imageElement.setAttribute("height", "200"); 45 imageElement.setAttribute("height", "200");
46 imageElement.setAttribute("preserveAspectRatio", "none"); 46 imageElement.setAttribute("preserveAspectRatio", "none");
(...skipping 14 matching lines...) Expand all
61 feBFunc.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTR ANSFER_TYPE_LINEAR; 61 feBFunc.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTR ANSFER_TYPE_LINEAR;
62 feAFunc.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTR ANSFER_TYPE_LINEAR; 62 feAFunc.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTR ANSFER_TYPE_LINEAR;
63 63
64 shouldBe("feRFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR"); 64 shouldBe("feRFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR");
65 shouldBe("feGFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR"); 65 shouldBe("feGFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR");
66 shouldBe("feBFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR"); 66 shouldBe("feBFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR");
67 shouldBe("feAFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR"); 67 shouldBe("feAFunc.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FE COMPONENTTRANSFER_TYPE_LINEAR");
68 } 68 }
69 69
70 var successfullyParsed = true; 70 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-tableValues-prop.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698