Index: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.html b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.html |
index 0b7a719f04f3aceb3cfbf87132b622c4cace7225..dd2a2ebada9797a36adef39cda4f2544932731d0 100644 |
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.html |
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.html |
@@ -2,6 +2,7 @@ |
<title>SVGLengthList, removeItem()</title> |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
+<script src="resources/SVGLengthList-helper.js"></script> |
<svg width="200" height="200"> |
<text x="500 50 100 900 150" y="50">ABC</text> |
</svg> |
@@ -11,13 +12,7 @@ test(function() { |
var list = document.querySelector("text").x.baseVal; |
// Check initial list state of text. |
- assert_equals(list.numberOfItems, 5); |
- assert_equals(list.getItem(0).value, 500); |
- assert_equals(list.getItem(1).value, 50); |
- assert_equals(list.getItem(2).value, 100); |
- assert_equals(list.getItem(3).value, 900); |
- assert_equals(list.getItem(4).value, 150); |
- assert_throws("IndexSizeError", function() { list.getItem(5); }); |
+ assert_list(list, [500, 50, 100, 900, 150]); |
// Remove first item. |
assert_equals(list.removeItem(0).value, 500); |