Index: third_party/WebKit/LayoutTests/svg/dom/resources/SVGLengthList-helper.js |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/resources/SVGLengthList-helper.js b/third_party/WebKit/LayoutTests/svg/dom/resources/SVGLengthList-helper.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3cf888b7dbaeb370ef1b34409540337dee2c8e33 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/dom/resources/SVGLengthList-helper.js |
@@ -0,0 +1,7 @@ |
+function assert_list(list, expectedValues) { |
+ assert_equals(list.numberOfItems, expectedValues.length); |
+ for (var index = 0; index < expectedValues.length; ++index) |
+ assert_equals(list.getItem(index).value, expectedValues[index]); |
+ |
+ assert_throws("IndexSizeError", function() { list.getItem(expectedValues.length); }); |
+} |