| 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>
|
|
|