Index: third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-still.js |
diff --git a/third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-fill-freeze.js b/third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-still.js |
similarity index 56% |
copy from third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-fill-freeze.js |
copy to third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-still.js |
index 98c4084719a15998a655d568b2fbc5dd055b789b..c7bbc50b5b539039c3536b16c2d5f6f309081193 100644 |
--- a/third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-fill-freeze.js |
+++ b/third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-still.js |
@@ -1,21 +1,25 @@ |
-description("Test for animation freeze when repeatDur is not a multiple of dur"); |
-embedSVGTestCase("resources/animateMotion-fill-freeze.svg"); |
+description("Test animations that only express an offset"); |
+embedSVGTestCase("resources/animateMotion-still.svg"); |
// Setup animation test |
function sample1() { |
- shouldBeCloseEnough("rootSVGElement.getBBox().x", "0"); |
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "100"); |
} |
function sample2() { |
- shouldBeCloseEnough("rootSVGElement.getBBox().x", "50"); |
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "200"); |
} |
function sample3() { |
- shouldBeCloseEnough("rootSVGElement.getBBox().x", "100"); |
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "200"); |
} |
function sample4() { |
- shouldBeCloseEnough("rootSVGElement.getBBox().x", "100"); |
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "0"); |
+} |
+ |
+function sample5() { |
+ shouldBeCloseEnough("rootSVGElement.getBBox().x", "0"); |
} |
function executeTest() { |
@@ -24,10 +28,11 @@ function executeTest() { |
const expectedValues = [ |
// [animationId, time, sampleCallback] |
- ["anim", 0.0, sample1], |
+ ["anim", 1.0, sample1], |
["anim", 2.0, sample2], |
- ["anim", 4.0, sample3], |
- ["anim", 6.0, sample4] |
+ ["anim", 3.0, sample3], |
+ ["anim", 4.0, sample4], |
+ ["anim", 5.0, sample5] |
]; |
runAnimationTest(expectedValues); |