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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-initialize-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-initialize-expected.txt
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt
deleted file mode 100644
index a392ad8a6d46986ba0da0f222f9e220eed5a12dc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt
+++ /dev/null
@@ -1,88 +0,0 @@
-ABC
-ABC
-ABC
-ABC
-ABC
-This is a test of the SVGLengthList::initialize() API.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Check initial list state of text1
-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)..
-
-Check initial list state of text2
-PASS text2.x.baseVal.numberOfItems is 2
-PASS text2.x.baseVal.getItem(0).value is 50
-PASS text2.x.baseVal.getItem(1).value is 500
-PASS text2.x.baseVal.getItem(2) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (2) is greater than or equal to the maximum bound (2)..
-
-Check initial list state of text3
-PASS text3.x.baseVal.numberOfItems is 3
-PASS text3.x.baseVal.getItem(0).value is 50
-PASS text3.x.baseVal.getItem(1).value is 500
-PASS text3.x.baseVal.getItem(2).value is 50
-PASS text3.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)..
-
-Check initial list state of text4
-PASS text4.x.baseVal.numberOfItems is 1
-PASS text4.x.baseVal.getItem(0).value is 500
-PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
-
-Create a new SVGLength object, that will be the only x coordinate in the first text element.
-PASS newLength.value is 50
-
-Initialize SVGLengthList with 'newLength'
-PASS text1.x.baseVal.initialize(newLength) is newLength
-PASS text1.x.baseVal.getItem(0) is newLength
-
-Take the second x item '500' of the second text element, store it in 'itemInAnotherList' change it to '50'
-PASS text2.x.baseVal.getItem(1).value is 500
-PASS text2.x.baseVal.getItem(1).value is 50
-
-Override the third text elements x list with the item x=50 from the second text element, where it should not be removed afterwards
-PASS text3.x.baseVal.initialize(itemInAnotherList) is itemInAnotherList
-PASS text3.x.baseVal.getItem(0).value is 50
-PASS text2.x.baseVal.getItem(0).value is 50
-PASS text2.x.baseVal.getItem(1) did not throw exception.
-
-Assure that the 'itemInAnotherList' item is still live anymore, set value to 999 then back to 50
-PASS itemInAnotherList.value = 999; is 999
-PASS itemInAnotherList.value is 999
-PASS text3.x.baseVal.getItem(0).value is 50
-PASS itemInAnotherList.value = 50; is 50
-PASS itemInAnotherList.value is 50
-PASS text3.x.baseVal.getItem(0).value is 50
-
-Copy item from text3 to text4
-PASS text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) is itemInAnotherList
-PASS text4.x.baseVal.getItem(0).value is 50
-PASS text3.x.baseVal.getItem(0) did not throw exception.
-
-Initialize text2 using setAttribute('x', '50')
-PASS text2.x.baseVal.getItem(0).value is 50
-
-Final check whether the lists all look like expected
-PASS text1.x.baseVal.getItem(0).value is 50
-PASS text2.x.baseVal.getItem(0).value is 50
-PASS text3.x.baseVal.getItem(0).value is 50
-PASS text4.x.baseVal.getItem(0).value is 50
-PASS text1.x.baseVal.numberOfItems is 1
-PASS text2.x.baseVal.numberOfItems is 1
-PASS text3.x.baseVal.numberOfItems is 1
-PASS text4.x.baseVal.numberOfItems is 1
-PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
-PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
-PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
-PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
-
-The test passes if you only see 'PASS' messages, and all five text elements on top look the same
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Powered by Google App Engine
This is Rietveld 408576698