Index: third_party/WebKit/LayoutTests/animations/svg-attribute-responsive/svg-points-responsive.html |
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-responsive/svg-points-responsive.html b/third_party/WebKit/LayoutTests/animations/svg-attribute-responsive/svg-points-responsive.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..091e641dd7adc58b29eb09ef964ca8dccae6a3c5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-responsive/svg-points-responsive.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script src="../responsive/resources/responsive-test.js"></script> |
+<script> |
+assertSVGResponsive({ |
+ targetTag: 'polygon', |
+ property: 'points', |
+ getter(target) { |
+ 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.
|
+ }, |
+ to: '10 20, 30 40', |
+ configurations: [{ |
+ state: {underlying: '10 10, 20 20'}, |
+ expect: [ |
+ {at: 0.25, is: '10 12.5, 22.5 25'}, |
+ {at: 0.75, is: '10 17.5, 27.5 35'}, |
+ ], |
+ }, { |
+ state: {underlying: '10 10'}, |
+ expect: [ |
+ {at: 0.25, is: '10 10'}, |
+ {at: 0.75, is: '10 20, 30 40'}, |
+ ], |
+ }], |
+}); |
+</script> |