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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.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-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);

Powered by Google App Engine
This is Rietveld 408576698