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

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

Issue 1417483015: SVG Web Animations: Add SVGIntegerOptionalIntegerInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More test work... Some failing 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/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.h » ('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-order-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-order-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-order-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..847cbe635350a7327bf51080f73fbd9f2a77906a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-order-composition.html
@@ -0,0 +1,218 @@
+<!DOCTYPE html>
+<html>
+<body>
+<template id="target-template">
+<svg width="90" height="90">
+<defs>
+<filter>
+<feConvolveMatrix order="4 1" kernelMatrix="100 200 300 400" class="target" />
+</filter>
+</defs>
+</svg>
+</template>
+<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
+<script>
+'use strict';
+// The number of entries kernelMatrix must equal <orderX> times <orderY>.
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '0',
+ from: '1, 4',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '1, 4'},
+ {at: 1, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '1, 4',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '1, 4'},
+ {at: 1, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '1, 4',
+ fromComposite: 'replace',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '1, 4'},
+ {at: 1, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '1, 4',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'replace',
+}, [
+ {at: 0, is: '1, 4'},
+ {at: 1, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'replace',
+}, [
+ {at: 0, is: '1, 1'},
+ {at: 1, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '0',
+ from: '2',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '2, 2'},
+ {at: 0, is: '2, 2'},
+ {at: 0.2, is: '2, 2'},
+ {at: 0.6, is: '2, 2'},
+ {at: 1, is: '2, 2'},
+ {at: 1.4, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '2, 2'},
+ {at: 0, is: '2, 2'},
+ {at: 0.2, is: '2, 2'},
+ {at: 0.6, is: '2, 2'},
+ {at: 1, is: '2, 2'},
+ {at: 1.4, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'replace',
+ to: '2',
+ toComposite: 'add',
+}, [
+ {at: -0.4, is: '2, 2'},
+ {at: 0, is: '2, 2'},
+ {at: 0.2, is: '2, 2'},
+ {at: 0.6, is: '2, 2'},
+ {at: 1, is: '2, 2'},
+ {at: 1.4, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'replace',
+}, [
+ {at: -0.4, is: '2, 2'},
+ {at: 0, is: '2, 2'},
+ {at: 0.2, is: '2, 2'},
+ {at: 0.6, is: '2, 2'},
+ {at: 1, is: '2, 2'},
+ {at: 1.4, is: '2, 2'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '',
+ fromComposite: 'add',
+ to: '2',
+ toComposite: 'replace',
+}, [
+ {at: -0.4, is: '1, 1'},
+ {at: 0, is: '1, 1'},
+ {at: 0.2, is: '1, 1'},
+ {at: 0.6, is: '1, 1'},
+ {at: 1, is: '2, 2'},
+ {at: 1.4, is: '3, 3'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '0',
+ from: '2',
+ fromComposite: 'add',
+ to: '4, 1',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '2, 2'},
+ {at: 1, is: '4, 1'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'add',
+ to: '4, 1',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '2, 2'},
+ {at: 1, is: '4, 1'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'replace',
+ to: '4, 1',
+ toComposite: 'add',
+}, [
+ {at: 0, is: '2, 2'},
+ {at: 1, is: '4, 1'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '2',
+ fromComposite: 'add',
+ to: '4, 1',
+ toComposite: 'replace',
+}, [
+ {at: 0, is: '2, 2'},
+ {at: 1, is: '4, 1'},
+]);
+
+assertAttributeInterpolation({
+ property: 'order',
+ underlying: '3',
+ from: '',
+ fromComposite: 'add',
+ to: '4, 1',
+ toComposite: 'replace',
+}, [
+ {at: 0, is: '1, 1'},
+ {at: 1, is: '4, 1'},
+]);
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/IntegerOptionalIntegerSVGInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698