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

Side by Side Diff: LayoutTests/svg/animations/script-tests/animate-currentColor.js

Issue 137443006: Remove support for <animateColor>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test adjustments Created 6 years, 11 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
OLDNEW
1 description("Tests animation on 'currentColor'."); 1 description("Tests animation on 'currentColor'.");
2 createSVGTestCase(); 2 createSVGTestCase();
3 3
4 // Setup test document 4 // Setup test document
5 var rect = createSVGElement("rect"); 5 var rect = createSVGElement("rect");
6 rect.setAttribute("id", "rect"); 6 rect.setAttribute("id", "rect");
7 rect.setAttribute("width", "100px"); 7 rect.setAttribute("width", "100px");
8 rect.setAttribute("height", "100px"); 8 rect.setAttribute("height", "100px");
9 rect.setAttribute("fill", "red"); 9 rect.setAttribute("fill", "red");
10 rect.setAttribute("color", "green"); 10 rect.setAttribute("color", "green");
11 rect.setAttribute("onclick", "executeTest()"); 11 rect.setAttribute("onclick", "executeTest()");
12 12
13 var animateCurrentColor = createSVGElement("animateColor"); 13 var animateCurrentColor = createSVGElement("animate");
14 animateCurrentColor.setAttribute("id", "animateCurrentColor"); 14 animateCurrentColor.setAttribute("id", "animateCurrentColor");
15 animateCurrentColor.setAttribute("attributeName", "fill"); 15 animateCurrentColor.setAttribute("attributeName", "fill");
16 animateCurrentColor.setAttribute("from", "red"); 16 animateCurrentColor.setAttribute("from", "red");
17 animateCurrentColor.setAttribute("to", "currentColor"); 17 animateCurrentColor.setAttribute("to", "currentColor");
18 animateCurrentColor.setAttribute("dur", "3s"); 18 animateCurrentColor.setAttribute("dur", "3s");
19 animateCurrentColor.setAttribute("begin", "click"); 19 animateCurrentColor.setAttribute("begin", "click");
20 animateCurrentColor.setAttribute("fill", "freeze"); 20 animateCurrentColor.setAttribute("fill", "freeze");
21 rect.appendChild(animateCurrentColor); 21 rect.appendChild(animateCurrentColor);
22 rootSVGElement.appendChild(rect); 22 rootSVGElement.appendChild(rect);
23 23
(...skipping 19 matching lines...) Expand all
43 ["animateCurrentColor", 0.0, sample1], 43 ["animateCurrentColor", 0.0, sample1],
44 ["animateCurrentColor", 1.5, sample2], 44 ["animateCurrentColor", 1.5, sample2],
45 ["animateCurrentColor", 3.0, sample3] 45 ["animateCurrentColor", 3.0, sample3]
46 ]; 46 ];
47 47
48 runAnimationTest(expectedValues); 48 runAnimationTest(expectedValues);
49 } 49 }
50 50
51 var successfullyParsed = true; 51 var successfullyParsed = true;
52 52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698