Index: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-dx-dy-composition.html |
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-dx-dy-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-dx-dy-composition.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d5e83e2562f7b4331cb6754faaebda76ada38e7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-dx-dy-composition.html |
@@ -0,0 +1,104 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<template id="target-template"> |
+<svg width="90" height="90"> |
+<text class="target">123</text> |
fs
2015/12/16 22:43:29
Since this is testing the 'list' cases, maybe it'd
|
+</svg> |
+</template> |
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script> |
+<script> |
+'use strict'; |
+assertAttributeInterpolation({ |
+ property: 'dx', |
+ underlying: '2', |
+ from: '-1', |
+ fromComposite: 'add', |
+ to: '4', |
+ toComposite: 'add' |
+}, [ |
+ {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'} |
+]); |
+assertAttributeInterpolation({ |
+ property: 'dy', |
+ underlying: '2 2', |
+ from: '-1 -4', |
+ fromComposite: 'add', |
+ to: '4 -14', |
+ toComposite: 'add' |
+}, [ |
+ {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'} |
+]); |
+ |
+assertAttributeInterpolation({ |
+ property: 'dx', |
+ underlying: '2', |
+ from: '1', |
+ fromComposite: 'replace', |
+ to: '4', |
+ toComposite: 'add' |
+}, [ |
+ {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'} |
+]); |
+assertAttributeInterpolation({ |
+ property: 'dy', |
+ underlying: '2 2', |
+ from: '1 -2', |
+ fromComposite: 'replace', |
+ to: '4 -14', |
+ toComposite: 'add' |
+}, [ |
+ {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'} |
+]); |
+ |
+assertAttributeInterpolation({ |
+ property: 'dx', |
+ underlying: '1', |
+ from: neutralKeyframe, |
+ to: '6', |
+ toComposite: 'replace' |
+}, [ |
+ {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'} |
+]); |
+assertAttributeInterpolation({ |
+ property: 'dy', |
+ underlying: '1 -2', |
+ from: neutralKeyframe, |
+ to: '6 -12', |
+ toComposite: 'replace' |
+}, [ |
+ {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'} |
+]); |
+</script> |
+</body> |
+</html> |