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

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

Issue 1418193007: Web Animations: Add SVGNumberOptionalNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgIntegerInterpolationType
Patch Set: neutralKeyframe 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-stdDeviation-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-stdDeviation-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-stdDeviation-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e79c50e25fbecef9cc98ce7c9544a5efa9ed467
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-stdDeviation-composition.html
@@ -0,0 +1,145 @@
+<!DOCTYPE html>
+<html>
+<body>
+<template id="target-template">
+<svg width="90" height="90">
+<defs>
+<filter>
+<feGaussianBlur class="target" />
+</filter>
+</defs>
+</svg>
+</template>
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
+<script>
+'use strict';
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '0',
+ from: '1',
+ fromComposite: 'add',
+ to: '6 11',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '-1, -3'},
+ {at: 0, is: '1, 1'},
+ {at: 0.2, is: '2, 3'},
+ {at: 0.6, is: '4, 7'},
+ {at: 1, is: '6, 11'},
+ {at: 1.4, is: '8, 15'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: '1',
+ fromComposite: 'add',
+ to: '6 11',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '2, 0'},
+ {at: 0, is: '4, 4'},
+ {at: 0.2, is: '5, 6'},
+ {at: 0.6, is: '7, 10'},
+ {at: 1, is: '9, 14'},
+ {at: 1.4, is: '11, 18'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: '1',
+ fromComposite: 'replace',
+ to: '6 11',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '-2.2, -4.2'},
+ {at: 0, is: '1, 1'},
+ {at: 0.2, is: '2.6, 3.6'},
+ {at: 0.6, is: '5.8, 8.8'},
+ {at: 1, is: '9, 14'},
+ {at: 1.4, is: '12.2, 19.2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: neutralKeyframe,
+ to: '6 11',
+ toComposite: 'replace',
+}, [
+ {at: -0.4, is: '1.8, -0.2'},
+ {at: 0, is: '3, 3'},
+ {at: 0.2, is: '3.6, 4.6'},
+ {at: 0.6, is: '4.8, 7.8'},
+ {at: 1, is: '6, 11'},
+ {at: 1.4, is: '7.2, 14.2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '0',
+ from: '-2 10',
+ fromComposite: 'add',
+ to: '3 10',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '-4, 10'},
+ {at: 0, is: '-2, 10'},
+ {at: 0.2, is: '-1, 10'},
+ {at: 0.6, is: '1, 10'},
+ {at: 1, is: '3, 10'},
+ {at: 1.4, is: '5, 10'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: '-2 10',
+ fromComposite: 'add',
+ to: '3 10',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '-1, 13'},
+ {at: 0, is: '1, 13'},
+ {at: 0.2, is: '2, 13'},
+ {at: 0.6, is: '4, 13'},
+ {at: 1, is: '6, 13'},
+ {at: 1.4, is: '8, 13'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: '-2 10',
+ fromComposite: 'replace',
+ to: '3 10',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '-5.2, 8.8'},
+ {at: 0, is: '-2, 10'},
+ {at: 0.2, is: '-0.4, 10.6'},
+ {at: 0.6, is: '2.8, 11.8'},
+ {at: 1, is: '6, 13'},
+ {at: 1.4, is: '9.2, 14.2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'stdDeviation',
+ underlying: '3',
+ from: neutralKeyframe,
+ to: '3 10',
+ toComposite: 'replace',
+}, [
+ {at: -0.4, is: '3, 0.2'},
+ {at: 0, is: '3, 3'},
+ {at: 0.2, is: '3, 4.4'},
+ {at: 0.6, is: '3, 7.2'},
+ {at: 1, is: '3, 10'},
+ {at: 1.4, is: '3, 12.8'},
+]);
+
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698