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

Side by Side Diff: LayoutTests/svg/animations/script-tests/animate-inherit-css-property.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 with 'inherit'."); 1 description("Tests animation with 'inherit'.");
2 createSVGTestCase(); 2 createSVGTestCase();
3 3
4 // Setup test document 4 // Setup test document
5 var g = createSVGElement("g"); 5 var g = createSVGElement("g");
6 g.setAttribute("fill", "green"); 6 g.setAttribute("fill", "green");
7 7
8 var rect = createSVGElement("rect"); 8 var rect = createSVGElement("rect");
9 rect.setAttribute("id", "rect"); 9 rect.setAttribute("id", "rect");
10 rect.setAttribute("width", "100px"); 10 rect.setAttribute("width", "100px");
11 rect.setAttribute("height", "100px"); 11 rect.setAttribute("height", "100px");
12 rect.setAttribute("fill", "red"); 12 rect.setAttribute("fill", "red");
13 rect.setAttribute("onclick", "executeTest()"); 13 rect.setAttribute("onclick", "executeTest()");
14 g.appendChild(rect); 14 g.appendChild(rect);
15 15
16 var animateInherit = createSVGElement("animateColor"); 16 var animateInherit = createSVGElement("animate");
17 animateInherit.setAttribute("id", "animateInherit"); 17 animateInherit.setAttribute("id", "animateInherit");
18 animateInherit.setAttribute("attributeName", "fill"); 18 animateInherit.setAttribute("attributeName", "fill");
19 animateInherit.setAttribute("from", "red"); 19 animateInherit.setAttribute("from", "red");
20 animateInherit.setAttribute("to", "inherit"); 20 animateInherit.setAttribute("to", "inherit");
21 animateInherit.setAttribute("dur", "3s"); 21 animateInherit.setAttribute("dur", "3s");
22 animateInherit.setAttribute("begin", "click"); 22 animateInherit.setAttribute("begin", "click");
23 animateInherit.setAttribute("fill", "freeze"); 23 animateInherit.setAttribute("fill", "freeze");
24 rect.appendChild(animateInherit); 24 rect.appendChild(animateInherit);
25 rootSVGElement.appendChild(g); 25 rootSVGElement.appendChild(g);
26 26
(...skipping 21 matching lines...) Expand all
48 // [animationId, time, sampleCallback] 48 // [animationId, time, sampleCallback]
49 ["animateInherit", 0.0, sample1], 49 ["animateInherit", 0.0, sample1],
50 ["animateInherit", 1.5, sample2], 50 ["animateInherit", 1.5, sample2],
51 ["animateInherit", 3.0, sample3] 51 ["animateInherit", 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