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

Side by Side Diff: LayoutTests/svg/animations/script-tests/animate-no-matching-end-value.js

Issue 22604002: [SVG] Interval should not be created if a value in begin-value-list doesn't have a matching value i… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaselined Created 7 years, 3 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
(Empty)
1 description("Test animate intervals having begin-value without a matching end-va lue");
2 embedSVGTestCase("resources/animate-no-matching-end-value.svg");
3
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rect1.x.animVal.value", "0");
7 shouldBe("rect1.x.baseVal.value", "0");
8 }
9
10 function sample2() {
11 shouldBeCloseEnough("rect1.x.animVal.value", "100");
12 shouldBe("rect1.x.baseVal.value", "0");
13 }
14
15 function executeTest() {
16 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect");
17 rect1 = rects[0];
18
19 const expectedValues = [
20 // [animationId, time, sampleCallback]
21 ["anim", 0.0, sample1],
22 ["anim", 1.0, sample2],
23 ["anim", 2.0, sample1],
24 ["anim", 3.0, sample2],
25 ["anim", 4.0, sample1],
26 ["anim", 5.0, sample1]
27 ];
28
29 runAnimationTest(expectedValues);
30 }
31
32 window.animationStartsImmediately = true;
33 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/svg/animations/resources/animate-no-matching-end-value.svg ('k') | Source/core/svg/animation/SVGSMILElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698