Index: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html |
index 900724c2e6caa3d03a84b5fc56d2f688470bc68c..98a62e9f9e3f8f501a907e23a56ebac8152e5bda 100644 |
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html |
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html |
@@ -2,6 +2,7 @@ |
<title>SVGLengthList, replaceItem()</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 id="text1" x="500 1000 1500" y="50"> ABC </text> |
<text id="text2" x="500 100 150 50" y="75"> ABC </text> |
@@ -9,14 +10,6 @@ |
<text id="text4" x="100 50 150 150" y="125"> ABC</text> |
</svg> |
<script> |
-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); }); |
-} |
- |
test(function() { |
// This is a test of the SVGLengthList.replaceItem() API. |