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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.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-appendItemFromClearedList.html
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.html b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.html
index 2e23d7c56c3fd2ec1f457bd5ea4372991af43a6e..2eede91c0d598924d4aac98ad03cc6c9673d1fe0 100644
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.html
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-appendItemFromClearedList.html
@@ -2,6 +2,7 @@
<title>SVGLengthList, appendItem() from cleared list</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="1 2 3">ABC</text>
<text id="text2" x="10 20">ABC</text>
@@ -19,12 +20,7 @@ test(function() {
list1.appendItem(itemFromClearedList);
- assert_equals(list1.numberOfItems, 4);
- assert_equals(list1.getItem(0).value, 1);
- assert_equals(list1.getItem(1).value, 2);
- assert_equals(list1.getItem(2).value, 3);
- assert_equals(list1.getItem(3).value, 10);
-
+ assert_list(list1, [1, 2, 3, 10]);
assert_equals(list2.numberOfItems, 0);
});
</script>

Powered by Google App Engine
This is Rietveld 408576698