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

Side by Side Diff: LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-amplitude-attr.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 | « no previous file | LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-exponent-attr.js » ('j') | 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-dom-amplitude-attr.js 1 // [Name] SVGFEComponentTransferElement-dom-amplitude-attr.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 'amplitude' attribute of the SVGFEComp onentTransferElement object") 4 description("Tests dynamic updates of the 'amplitude' attribute of the SVGFEComp onentTransferElement object")
5 createSVGTestCase(); 5 createSVGTestCase();
6 6
7 var feRFunc = createSVGElement("feFuncR"); 7 var feRFunc = createSVGElement("feFuncR");
8 feRFunc.setAttribute("id", "fr"); 8 feRFunc.setAttribute("id", "fr");
9 feRFunc.setAttribute("type", "gamma"); 9 feRFunc.setAttribute("type", "gamma");
10 feRFunc.setAttribute("amplitude", "3"); 10 feRFunc.setAttribute("amplitude", "3");
11 11
12 var feGFunc = createSVGElement("feFuncG"); 12 var feGFunc = createSVGElement("feFuncG");
13 feGFunc.setAttribute("id", "fg"); 13 feGFunc.setAttribute("id", "fg");
14 feGFunc.setAttribute("type", "gamma"); 14 feGFunc.setAttribute("type", "gamma");
15 feRFunc.setAttribute("amplitude", "3"); 15 feRFunc.setAttribute("amplitude", "3");
16 16
17 var feBFunc = createSVGElement("feFuncB"); 17 var feBFunc = createSVGElement("feFuncB");
18 feBFunc.setAttribute("id", "fb"); 18 feBFunc.setAttribute("id", "fb");
19 feBFunc.setAttribute("type", "gamma"); 19 feBFunc.setAttribute("type", "gamma");
20 feRFunc.setAttribute("amplitude", "3"); 20 feRFunc.setAttribute("amplitude", "3");
21 21
22 var feAFunc = createSVGElement("feFuncA"); 22 var feAFunc = createSVGElement("feFuncA");
23 feAFunc.setAttribute("id", "fb"); 23 feAFunc.setAttribute("id", "fb");
24 feAFunc.setAttribute("type", "gamma"); 24 feAFunc.setAttribute("type", "gamma");
25 feAFunc.setAttribute("amplitude", "3"); 25 feAFunc.setAttribute("amplitude", "3");
26 26
27 var feCompnentTransferElement = createSVGElement("feComponentTransfer"); 27 var feComponentTransferElement = createSVGElement("feComponentTransfer");
28 feCompnentTransferElement.appendChild(feRFunc); 28 feComponentTransferElement.appendChild(feRFunc);
29 feCompnentTransferElement.appendChild(feGFunc); 29 feComponentTransferElement.appendChild(feGFunc);
30 feCompnentTransferElement.appendChild(feBFunc); 30 feComponentTransferElement.appendChild(feBFunc);
31 feCompnentTransferElement.appendChild(feAFunc); 31 feComponentTransferElement.appendChild(feAFunc);
32 32
33 var compTranFilter = createSVGElement("filter"); 33 var compTranFilter = createSVGElement("filter");
34 compTranFilter.setAttribute("id", "compTranFilter"); 34 compTranFilter.setAttribute("id", "compTranFilter");
35 compTranFilter.setAttribute("filterUnits", "objectBoundingBox"); 35 compTranFilter.setAttribute("filterUnits", "objectBoundingBox");
36 compTranFilter.setAttribute("x", "0%"); 36 compTranFilter.setAttribute("x", "0%");
37 compTranFilter.setAttribute("y", "0%"); 37 compTranFilter.setAttribute("y", "0%");
38 compTranFilter.setAttribute("width", "100%"); 38 compTranFilter.setAttribute("width", "100%");
39 compTranFilter.setAttribute("height", "100%"); 39 compTranFilter.setAttribute("height", "100%");
40 compTranFilter.appendChild(feCompnentTransferElement); 40 compTranFilter.appendChild(feComponentTransferElement);
41 41
42 var defsElement = createSVGElement("defs"); 42 var defsElement = createSVGElement("defs");
43 defsElement.appendChild(compTranFilter); 43 defsElement.appendChild(compTranFilter);
44 rootSVGElement.appendChild(defsElement); 44 rootSVGElement.appendChild(defsElement);
45 45
46 var imageElement = createSVGElement("image"); 46 var imageElement = createSVGElement("image");
47 imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/str uct-image-01.png"); 47 imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/str uct-image-01.png");
48 imageElement.setAttribute("width", "400"); 48 imageElement.setAttribute("width", "400");
49 imageElement.setAttribute("height", "200"); 49 imageElement.setAttribute("height", "200");
50 imageElement.setAttribute("preserveAspectRatio", "none"); 50 imageElement.setAttribute("preserveAspectRatio", "none");
(...skipping 14 matching lines...) Expand all
65 feBFunc.setAttribute("amplitude", "1"); 65 feBFunc.setAttribute("amplitude", "1");
66 feAFunc.setAttribute("amplitude", "1"); 66 feAFunc.setAttribute("amplitude", "1");
67 67
68 shouldBeEqualToString("feRFunc.getAttribute('amplitude')", "1"); 68 shouldBeEqualToString("feRFunc.getAttribute('amplitude')", "1");
69 shouldBeEqualToString("feGFunc.getAttribute('amplitude')", "1"); 69 shouldBeEqualToString("feGFunc.getAttribute('amplitude')", "1");
70 shouldBeEqualToString("feBFunc.getAttribute('amplitude')", "1"); 70 shouldBeEqualToString("feBFunc.getAttribute('amplitude')", "1");
71 shouldBeEqualToString("feAFunc.getAttribute('amplitude')", "1"); 71 shouldBeEqualToString("feAFunc.getAttribute('amplitude')", "1");
72 } 72 }
73 73
74 var successfullyParsed = true; 74 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-exponent-attr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698