Index: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html |
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..20279644293da378082068ffcd17463b9ef2ce54 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html |
@@ -0,0 +1,65 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<template id="target-template"> |
+<svg width="90" height="90"> |
+<text> |
+<tspan class="target"> |
+abcd |
+</tspan> |
+</text> |
+</svg> |
+</template> |
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script> |
+<script> |
+'use strict'; |
+assertAttributeInterpolation({ |
+ property: 'rotate', |
+ underlying: '10, 20', |
+ fromComposite: 'add', |
+ from: '30, 40', |
+ toComposite: 'add', |
+ to: '50, -10' |
+}, [ |
+ {at: -0.4, is: '32, 80'}, |
+ {at: 0, is: '40, 60'}, |
+ {at: 0.2, is: '44, 50'}, |
+ {at: 0.6, is: '52, 30'}, |
+ {at: 1.0, is: '60, 10'}, |
+ {at: 1.4, is: '68, -10'}, |
+]); |
+ |
+assertAttributeInterpolation({ |
+ property: 'rotate', |
+ underlying: '10, 20', |
+ fromComposite: 'replace', |
+ from: '30, 40', |
+ toComposite: 'add', |
+ to: '50, -10' |
+}, [ |
+ {at: -0.4, is: '18, 52'}, |
+ {at: 0, is: '30, 40'}, |
+ {at: 0.2, is: '36, 34'}, |
+ {at: 0.6, is: '48, 22'}, |
+ {at: 1.0, is: '60, 10'}, |
+ {at: 1.4, is: '72, -2'}, |
+]); |
+ |
+assertAttributeInterpolation({ |
+ property: 'rotate', |
+ underlying: '', |
+ fromComposite: 'add', |
+ from: '30, 40', |
+ toComposite: 'replace', |
+ to: '50, -10' |
+}, [ |
+ {at: -0.4, is: ''}, |
+ {at: 0, is: ''}, |
+ {at: 0.2, is: ''}, |
+ {at: 0.6, is: ''}, |
+ {at: 1.0, is: '50, -10'}, |
+ {at: 1.4, is: ''}, |
+]); |
+</script> |
+</body> |
+</html> |