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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/script-tests/animateMotion-still.js

Issue 1418663004: SVG animateMotion paths that only cause offsets are no longer ignored (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698