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(''); |