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

Unified Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-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
Index: third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..444d15f838c3ac5b3eede89b0f6202dd314314c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-tableValues-composition.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html>
+<body>
+<template id="target-template">
+<svg width="90" height="90">
+<feComponentTransfer>
+<feFuncG type="table" class="target" />
+</feComponentTransfer>
+</svg>
+</template>
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
+<script>
+'use strict';
+assertAttributeInterpolation({
+ property: 'tableValues',
+ 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'},
+]);
alancutter (OOO until 2018) 2015/11/03 03:28:25 Add an add -> add test with an underlying value of
+
+assertAttributeInterpolation({
+ property: 'tableValues',
+ 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: 'tableValues',
+ 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>

Powered by Google App Engine
This is Rietveld 408576698