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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-responsive/svg-points-responsive.html

Issue 1450123003: Add SVG animation support to responsive-test.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_responsiveNeutralValueFormat
Patch Set: Review changes 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../responsive/resources/responsive-test.js"></script>
3 <script>
4 assertSVGResponsive({
5 targetTag: 'polygon',
6 property: 'points',
7 getter(target) {
8 return Array.from(target.animatedPoints).map(p => `${p.x} ${p.y}`).join(', ' );
9 },
10 to: '10 20, 30 40',
11 configurations: [{
12 state: {underlying: '10 10, 20 20'},
13 expect: [
14 {at: 0.25, is: '10 12.5, 22.5 25'},
15 {at: 0.75, is: '10 17.5, 27.5 35'},
16 ],
17 }, {
18 state: {underlying: '10 10'},
19 expect: [
20 {at: 0.25, is: '10 10'},
21 {at: 0.75, is: '10 20, 30 40'},
22 ],
23 }],
24 });
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698