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

Unified Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-number-interpolation.html

Issue 1587533002: Add composition support for SVG Web Animation of x, y, dx, dy attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review changes Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-number-interpolation.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-interpolation.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-number-interpolation.html
similarity index 60%
rename from third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-interpolation.html
rename to third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-number-interpolation.html
index c9c659d19963e7e25db09aafc212e16e755ac286..924d6d4d7be08c8684d53d66d55698f5684cd995 100644
--- a/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-interpolation.html
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/svg-dx-dy-number-interpolation.html
@@ -2,9 +2,9 @@
<html>
<body>
<template id="target-template">
-<svg width="90" height="90">
-<text class="target">123</text>
-</svg>
+ <svg width="0" height="0">
+ <feOffset class="target"></feOffset>
+ </svg>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
@@ -12,26 +12,27 @@
assertAttributeInterpolation({
property: 'dx',
from: '1',
- to: '6'
+ to: '6',
}, [
{at: -0.4, is: '-1'},
{at: 0, is: '1'},
{at: 0.2, is: '2'},
{at: 0.6, is: '4'},
{at: 1, is: '6'},
- {at: 1.4, is: '8'}
+ {at: 1.4, is: '8'},
]);
+
assertAttributeInterpolation({
property: 'dy',
- from: '1 -2',
- to: '6 -12'
+ from: '1',
+ to: '6',
}, [
- {at: -0.4, is: '-1 2'},
- {at: 0, is: '1 -2'},
- {at: 0.2, is: '2 -4'},
- {at: 0.6, is: '4 -8'},
- {at: 1, is: '6 -12'},
- {at: 1.4, is: '8 -16'}
+ {at: -0.4, is: '-1'},
+ {at: 0, is: '1'},
+ {at: 0.2, is: '2'},
+ {at: 0.6, is: '4'},
+ {at: 1, is: '6'},
+ {at: 1.4, is: '8'},
]);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698