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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <template id="target-template"> 4 <template id="target-template">
5 <svg width="0" height="0"> 5 <svg width="90" height="90">
6 <defs>
7 <filter>
8 <feTurbulence class="target" /> 6 <feTurbulence class="target" />
9 </filter>
10 </defs>
11 </svg> 7 </svg>
12 </template> 8 </template>
13 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript> 9 <script src="../svg-attribute-interpolation/resources/interpolation-test.js"></s cript>
14 <script> 10 <script>
15 'use strict'; 11 'use strict';
16 assertAttributeInterpolation({ 12 assertAttributeInterpolation({
17 property: 'seed', 13 property: 'numOctaves',
18 underlying: '3', 14 underlying: '3',
15 fromComposite: 'add',
19 from: '1', 16 from: '1',
20 fromComposite: 'add',
21 to: '6',
22 toComposite: 'add', 17 toComposite: 'add',
18 to: '7',
23 }, [ 19 }, [
24 {at: -0.4, is: 2}, 20 {at: -0.4, is: 2},
25 {at: 0, is: 4}, 21 {at: 0, is: 4},
26 {at: 0.2, is: 5}, 22 {at: 0.2, is: 5},
27 {at: 0.6, is: 7}, 23 {at: 0.6, is: 8},
28 {at: 1, is: 9}, 24 {at: 1, is: 10},
29 {at: 1.4, is: 11}, 25 {at: 1.4, is: 12}
30 ]); 26 ]);
31 27
32 assertAttributeInterpolation({ 28 assertAttributeInterpolation({
33 property: 'seed', 29 property: 'numOctaves',
34 underlying: '5', 30 underlying: '5',
31 fromComposite: 'replace',
35 from: '1', 32 from: '1',
36 fromComposite: 'replace',
37 to: '6',
38 toComposite: 'add', 33 toComposite: 'add',
34 to: '7',
39 }, [ 35 }, [
40 {at: -0.4, is: -3}, 36 {at: -0.4, is: -3},
41 {at: 0, is: 1}, 37 {at: 0, is: 1},
42 {at: 0.2, is: 3}, 38 {at: 0.2, is: 3},
43 {at: 0.6, is: 7}, 39 {at: 0.6, is: 8},
44 {at: 1, is: 11}, 40 {at: 1, is: 12},
45 {at: 1.4, is: 15}, 41 {at: 1.4, is: 16}
46 ]); 42 ]);
47 43
48 assertAttributeInterpolation({ 44 assertAttributeInterpolation({
49 property: 'seed', 45 property: 'numOctaves',
50 underlying: '5', 46 underlying: '2',
47 fromComposite: 'add',
48 from: '1',
49 toComposite: 'replace',
50 to: '7',
51 }, [
52 {at: -0.4, is: 1},
53 {at: 0, is: 3},
54 {at: 0.2, is: 4},
55 {at: 0.6, is: 5},
56 {at: 1, is: 7},
57 {at: 1.4, is: 9}
58 ]);
59
60 assertAttributeInterpolation({
61 property: 'numOctaves',
62 underlying: '2',
63 fromComposite: 'add',
51 from: '', 64 from: '',
52 fromComposite: 'add', 65 to: '7',
53 to: '10',
54 toComposite: 'replace', 66 toComposite: 'replace',
55 }, [ 67 }, [
56 {at: -0.4, is: 3}, 68 {at: -0.4, is: 0},
57 {at: 0, is: 5}, 69 {at: 0, is: 2},
58 {at: 0.2, is: 6}, 70 {at: 0.2, is: 3},
59 {at: 0.6, is: 8}, 71 {at: 0.6, is: 5},
60 {at: 1, is: 10}, 72 {at: 1, is: 7},
61 {at: 1.4, is: 12}, 73 {at: 1.4, is: 9}
62 ]); 74 ]);
63 </script> 75 </script>
64 </body> 76 </body>
65 </html> 77 </html>
OLDNEW
« 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