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

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

Issue 1406393006: Web Animations: Migrate SVG integer 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-targetX-targetY-composition.html » ('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-numOctaves-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-seed-composition.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-numOctaves-composition.html
similarity index 54%
copy from third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-seed-composition.html
copy to third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-numOctaves-composition.html
index db2aec87b4808bcb0b61ab80abe1753b49acc35f..059624d941c95ee481724db4d7a230fafaecc216 100644
--- a/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-seed-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-numOctaves-composition.html
@@ -2,63 +2,75 @@
<html>
<body>
<template id="target-template">
-<svg width="0" height="0">
-<defs>
-<filter>
+<svg width="90" height="90">
<feTurbulence class="target" />
-</filter>
-</defs>
</svg>
</template>
<script src="../svg-attribute-interpolation/resources/interpolation-test.js"></script>
<script>
'use strict';
assertAttributeInterpolation({
- property: 'seed',
+ property: 'numOctaves',
underlying: '3',
- from: '1',
fromComposite: 'add',
- to: '6',
+ from: '1',
toComposite: 'add',
+ to: '7',
}, [
{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},
+ {at: 0.6, is: 8},
+ {at: 1, is: 10},
+ {at: 1.4, is: 12}
]);
assertAttributeInterpolation({
- property: 'seed',
+ property: 'numOctaves',
underlying: '5',
- from: '1',
fromComposite: 'replace',
- to: '6',
+ from: '1',
toComposite: 'add',
+ to: '7',
}, [
{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},
+ {at: 0.6, is: 8},
+ {at: 1, is: 12},
+ {at: 1.4, is: 16}
]);
assertAttributeInterpolation({
- property: 'seed',
- underlying: '5',
- from: '',
+ property: 'numOctaves',
+ underlying: '2',
+ fromComposite: 'add',
+ from: '1',
+ toComposite: 'replace',
+ to: '7',
+}, [
+ {at: -0.4, is: 1},
+ {at: 0, is: 3},
+ {at: 0.2, is: 4},
+ {at: 0.6, is: 5},
+ {at: 1, is: 7},
+ {at: 1.4, is: 9}
+]);
+
+assertAttributeInterpolation({
+ property: 'numOctaves',
+ underlying: '2',
fromComposite: 'add',
- to: '10',
+ from: '',
+ to: '7',
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},
+ {at: -0.4, is: 0},
+ {at: 0, is: 2},
+ {at: 0.2, is: 3},
+ {at: 0.6, is: 5},
+ {at: 1, is: 7},
+ {at: 1.4, is: 9}
]);
</script>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/svg-attribute-composition/svg-targetX-targetY-composition.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698