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..76c31fd819e3fa0ba6f142e4562bb13e6042fc47 |
--- /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 Array.from(target.animatedPoints).map(p => `${p.x} ${p.y}`).join(', '); |
+ }, |
+ 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> |