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

Unified Diff: third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js

Issue 1419733009: Web Animations: Add SVGNumberListInterpolationType (Closed) Base URL: ssh://pony.syd/usr/local/google/home/alancutter/repos/chromium/src@_svgRectInterpolationType
Patch Set: Fix responsive test derp 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-interpolation/resources/interpolation-test.js
diff --git a/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js b/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js
index edb6b68a4b53c3036f990db6420ac1f3afe2afe7..a102dd34ba1f76c8be47506e26fb95c9aa0b9090 100644
--- a/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js
+++ b/third_party/WebKit/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js
@@ -118,10 +118,7 @@
}
function serializeSVGNumberList(numberList) {
- var elements = [];
- for (var index = 0; index < numberList.numberOfItems; ++index)
- elements.push(numberList.getItem(index).value);
- return String(elements);
+ return Array.from(numberList).map(number => number.value).join(', ');
}
function serializeSVGPointList(pointList) {
@@ -404,10 +401,10 @@
} else {
assertionCode +=
` to: '${params.to}',\n` +
- ` fromComposite: '${params.fromComposite}',\n`;
+ ` toComposite: '${params.toComposite}',\n`;
}
- assertionCode += `\n}, [\n`;
+ assertionCode += `}, [\n`;
rebaseline.appendChild(document.createTextNode(assertionCode));
var rebaselineExpectation = document.createTextNode('');

Powered by Google App Engine
This is Rietveld 408576698