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

Unified Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html

Issue 1410343009: [WIP] Web Animations: Migrate SVG number list interpolation to interpolation types (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..021028acbaadd543ef0eb7221dc55df703c18c4f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-rotate-composition.html
@@ -0,0 +1,81 @@
+<!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',
+ fromComposite: 'add',
+ from: '20, 30',
+ toComposite: 'add',
+ to: '50, 40'
+}, [
+ {at: -0.4, is: '18, 26'},
+ {at: 0, is: '30, 30'},
+ {at: 0.2, is: '36, 32'},
+ {at: 0.6, is: '48, 36'},
+ {at: 1.0, is: '60, 40'},
+ {at: 1.4, is: '72, 44'},
+]);
+
+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: '22, 60'},
+ {at: 0, is: '30, 40'},
+ {at: 0.2, is: '34, 30'},
+ {at: 0.6, is: '42, 10'},
+ {at: 1.0, is: '50, -10'},
+ {at: 1.4, is: '58, -30'},
+]);
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698