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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-replaceItem.html

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
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.

Powered by Google App Engine
This is Rietveld 408576698