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

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

Issue 1410643011: Web Animations: Add SVGNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyHandleFilter
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/animations/svg-attribute-composition/svg-offset-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-offset-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-offset-composition.html
index 9776712c4cbd53281494716891a43d8fe2e0b21a..ee99a389523d0f950f356941c80537bcccb7d6b5 100644
--- a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-offset-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-offset-composition.html
@@ -1,24 +1,61 @@
<!DOCTYPE html>
-<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
+<html>
+<body>
<template id="target-template">
-<svg height="10"><stop class="target"/></svg>
+<svg width="0" height="0">
+<stop class="target" />
+</svg>
</template>
-<body></body>
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
<script>
+'use strict';
assertAttributeInterpolation({
property: 'offset',
- underlying: 0.5,
- from: -0.5,
+ underlying: '3',
+ from: '1',
fromComposite: 'add',
- to: 1,
+ to: '6',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: 2},
+ {at: 0, is: 4},
+ {at: 0.2, is: 5},
+ {at: 0.6, is: 7},
+ {at: 1, is: 9},
+ {at: 1.4, is: 11},
+]);
+
+assertAttributeInterpolation({
+ property: 'offset',
+ underlying: '5',
+ from: '1',
+ fromComposite: 'replace',
+ to: '6',
toComposite: 'add',
}, [
- {at: -0.5, is: -0.75},
- {at: 0, is: 0},
- {at: 0.25, is: 0.375},
- {at: 0.5, is: 0.75},
- {at: 0.75, is: 1.125},
- {at: 1, is: 1.5},
- {at: 1.5, is: 2.25}
+ {at: -0.4, is: -3},
+ {at: 0, is: 1},
+ {at: 0.2, is: 3},
+ {at: 0.6, is: 7},
+ {at: 1, is: 11},
+ {at: 1.4, is: 15},
+]);
+
+assertAttributeInterpolation({
+ property: 'offset',
+ underlying: '5',
+ from: '',
+ fromComposite: 'add',
+ to: '10',
+ toComposite: 'replace',
+}, [
+ {at: -0.4, is: 3},
+ {at: 0, is: 5},
+ {at: 0.2, is: 6},
+ {at: 0.6, is: 8},
+ {at: 1, is: 10},
+ {at: 1.4, is: 12},
]);
</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698