OLD | NEW |
---|---|
(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 [].map.call(target.animatedPoints, p => `${p.x} ${p.y}`).join(', '); | |
dstockwell
2015/11/17 22:13:02
Array.from(target).map(...)
alancutter (OOO until 2018)
2015/11/17 22:35:09
Cool, we have that now. Done.
| |
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> | |
OLD | NEW |