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

Unified 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698