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

Side by Side Diff: LayoutTests/svg/animations/script-tests/animateMotion-fill-remove.js

Issue 21262002: [SVG] animateMotion is freezing at the end by default (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 for animation freeze when repeatDur is not a multiple of dur") ;
2 embedSVGTestCase("resources/animateMotion-fill-remove.svg");
3
4 // Setup animation test
5 function sample1() {
6 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
7 }
8
9 function sample2() {
10 shouldBeCloseEnough("rootSVGElement.getBBox().x", "50");
11 }
12
13 function sample3() {
14 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
15 }
16
17 function sample4() {
18 shouldBeCloseEnough("rootSVGElement.getBBox().x", "0");
19 }
20
21 function executeTest() {
22 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect");
23 rect1 = rects[0];
24
25 const expectedValues = [
26 // [animationId, time, sampleCallback]
27 ["anim", 0.0, sample1],
28 ["anim", 2.0, sample2],
29 ["anim", 4.0, sample3],
30 ["anim", 6.0, sample4]
31 ];
32
33 runAnimationTest(expectedValues);
34 }
35
36 window.animationStartsImmediately = true;
37 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/svg/animations/script-tests/animateMotion-fill-freeze.js ('k') | Source/core/svg/SVGAnimateMotionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698