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

Side by Side Diff: LayoutTests/svg/animations/script-tests/animate-color-fill-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", "currentColor"); 9 rect.setAttribute("fill", "currentColor");
10 rect.setAttribute("color", "red"); 10 rect.setAttribute("color", "red");
11 rect.setAttribute("onclick", "executeTest()"); 11 rect.setAttribute("onclick", "executeTest()");
12 12
13 var animateColor = createSVGElement("animateColor"); 13 var animateColor = createSVGElement("animate");
14 animateColor.setAttribute("id", "animateColor"); 14 animateColor.setAttribute("id", "animateColor");
15 animateColor.setAttribute("attributeName", "color"); 15 animateColor.setAttribute("attributeName", "color");
16 animateColor.setAttribute("from", "red"); 16 animateColor.setAttribute("from", "red");
17 animateColor.setAttribute("to", "green"); 17 animateColor.setAttribute("to", "green");
18 animateColor.setAttribute("dur", "3s"); 18 animateColor.setAttribute("dur", "3s");
19 animateColor.setAttribute("begin", "click"); 19 animateColor.setAttribute("begin", "click");
20 animateColor.setAttribute("fill", "freeze"); 20 animateColor.setAttribute("fill", "freeze");
21 rect.appendChild(animateColor); 21 rect.appendChild(animateColor);
22 rootSVGElement.appendChild(rect); 22 rootSVGElement.appendChild(rect);
23 23
(...skipping 24 matching lines...) Expand all
48 // [animationId, time, sampleCallback] 48 // [animationId, time, sampleCallback]
49 ["animateColor", 0.0, sample1], 49 ["animateColor", 0.0, sample1],
50 ["animateColor", 1.5, sample2], 50 ["animateColor", 1.5, sample2],
51 ["animateColor", 3.0, sample3] 51 ["animateColor", 3.0, sample3]
52 ]; 52 ];
53 53
54 runAnimationTest(expectedValues); 54 runAnimationTest(expectedValues);
55 } 55 }
56 56
57 var successfullyParsed = true; 57 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698