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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/resources/SVGLengthList-helper.js

Issue 2354503002: Refactor LayoutTests/svg/dom/SVGLengthList*.html (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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); });
+}
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698