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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt

Issue 2344403002: Convert LayoutTests/svg/dom/SVGLengthList*.html js-tests.js to testharness.js based tests (Closed)
Patch Set: Align with review comments 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-insertItemBefore-expected.txt
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt
deleted file mode 100644
index 4f4b752b3aea71335af257c8449bf3be2080f44a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-insertItemBefore-expected.txt
+++ /dev/null
@@ -1,94 +0,0 @@
-ABC
-ABC
-This is a test of the SVGLengthList::insertItemBefore() API.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-
-Create three SVGLength objects, with values=50,100,150
-PASS newLength1.value is 50
-PASS newLength2.value is 100
-PASS newLength3.value is 150
-PASS newLength1 != newLength2 is true
-PASS newLength2 != newLength3 is true
-PASS newLength3 != newLength1 is true
-PASS newLength1.value == newLength2.value - 50 is true
-PASS newLength2.value + 50 == newLength3.value is true
-
-Check initial list state
-PASS text1.x.baseVal.numberOfItems is 3
-PASS text1.x.baseVal.getItem(0).value is 500
-PASS text1.x.baseVal.getItem(1).value is 1000
-PASS text1.x.baseVal.getItem(2).value is 1500
-PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
-
-Insert item 'newLength1' at the end of the list, by using a large index
-PASS text1.x.baseVal.insertItemBefore(newLength1, 1000) is newLength1
-PASS text1.x.baseVal.numberOfItems is 4
-PASS text1.x.baseVal.getItem(0).value is 500
-PASS text1.x.baseVal.getItem(1).value is 1000
-PASS text1.x.baseVal.getItem(2).value is 1500
-PASS text1.x.baseVal.getItem(3).value is 50
-PASS text1.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
-
-Storing getItem(0/1/2) in local variables
-
-Insert item 'newLength2' at the front of the list, by using index=0
-PASS text1.x.baseVal.insertItemBefore(newLength2, 0) is newLength2
-PASS text1.x.baseVal.numberOfItems is 5
-PASS text1.x.baseVal.getItem(0).value is 100
-PASS text1.x.baseVal.getItem(1).value is 500
-PASS text1.x.baseVal.getItem(2).value is 1000
-PASS text1.x.baseVal.getItem(3).value is 1500
-PASS text1.x.baseVal.getItem(4).value is 50
-PASS text1.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
-
-Assure that previously saved wrappers still show the old values
-PASS item0.value is 500
-PASS item1.value is 1000
-PASS item2.value is 1500
-PASS item3.value is 50
-
-Insert item 'newLength3' at position=2, between '500' and '1000'
-PASS text1.x.baseVal.insertItemBefore(newLength3, 2) is newLength3
-PASS text1.x.baseVal.numberOfItems is 6
-PASS text1.x.baseVal.getItem(0).value is 100
-PASS text1.x.baseVal.getItem(1).value is 500
-PASS text1.x.baseVal.getItem(2).value is 150
-PASS text1.x.baseVal.getItem(3).value is 1000
-PASS text1.x.baseVal.getItem(4).value is 1500
-PASS text1.x.baseVal.getItem(5).value is 50
-PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal to the maximum bound (6)..
-
-Insert item 'newLength3' at position=1, between '100' and '500', should not remove it from the old position=2 afterwards.
-PASS text1.x.baseVal.insertItemBefore(newLength3, 1) is newLength3
-PASS text1.x.baseVal.numberOfItems is 7
-PASS text1.x.baseVal.getItem(0).value is 100
-PASS text1.x.baseVal.getItem(1).value is 150
-PASS text1.x.baseVal.getItem(2).value is 500
-PASS text1.x.baseVal.getItem(3).value is 150
-PASS text1.x.baseVal.getItem(4).value is 1000
-PASS text1.x.baseVal.getItem(5).value is 1500
-PASS text1.x.baseVal.getItem(6).value is 50
-PASS text1.x.baseVal.getItem(7) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (7) is greater than or equal to the maximum bound (7)..
-
-Insert item 'newLength1' at position=0, before '100', should not remove it from the old position=6 afterwards.
-PASS text1.x.baseVal.insertItemBefore(newLength1, 0) is newLength1
-PASS text1.x.baseVal.numberOfItems is 8
-PASS text1.x.baseVal.getItem(0).value is 50
-PASS text1.x.baseVal.getItem(1).value is 100
-PASS text1.x.baseVal.getItem(2).value is 150
-PASS text1.x.baseVal.getItem(3).value is 500
-PASS text1.x.baseVal.getItem(4).value is 150
-PASS text1.x.baseVal.getItem(5).value is 1000
-PASS text1.x.baseVal.getItem(6).value is 1500
-PASS text1.x.baseVal.getItem(7).value is 50
-PASS text1.x.baseVal.getItem(8) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (8) is greater than or equal to the maximum bound (8)..
-
-The test passes if you only see 'PASS' messages, and both text elements on top look the same
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Powered by Google App Engine
This is Rietveld 408576698