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

Side by Side Diff: LayoutTests/svg/dom/SVGLengthList-initialize-expected.txt

Issue 1177303004: Updated SVGListPropertyHelper as per SVG2 Spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed presubmit error Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 ABC 1 ABC
2 ABC 2 ABC
3 ABC 3 ABC
4 ABC 4 ABC
5 ABC 5 ABC
6 This is a test of the SVGLengthList::initialize() API. 6 This is a test of the SVGLengthList::initialize() API.
7 7
8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
9 9
10 10
(...skipping 26 matching lines...) Expand all
37 PASS newLength.value is 50 37 PASS newLength.value is 50
38 38
39 Initialize SVGLengthList with 'newLength' 39 Initialize SVGLengthList with 'newLength'
40 PASS text1.x.baseVal.initialize(newLength) is newLength 40 PASS text1.x.baseVal.initialize(newLength) is newLength
41 PASS text1.x.baseVal.getItem(0) is newLength 41 PASS text1.x.baseVal.getItem(0) is newLength
42 42
43 Take the second x item '500' of the second text element, store it in 'itemInAnot herList' change it to '50' 43 Take the second x item '500' of the second text element, store it in 'itemInAnot herList' change it to '50'
44 PASS text2.x.baseVal.getItem(1).value is 500 44 PASS text2.x.baseVal.getItem(1).value is 500
45 PASS text2.x.baseVal.getItem(1).value is 50 45 PASS text2.x.baseVal.getItem(1).value is 50
46 46
47 Override the third text elements x list with the item x=50 from the second text element, where it should be removed afterwards 47 Override the third text elements x list with the item x=50 from the second text element, where it should not be removed afterwards
48 PASS text3.x.baseVal.initialize(itemInAnotherList) is itemInAnotherList 48 PASS text3.x.baseVal.initialize(itemInAnotherList) is itemInAnotherList
49 PASS text3.x.baseVal.getItem(0).value is 50 49 PASS text3.x.baseVal.getItem(0).value is 50
50 PASS text2.x.baseVal.getItem(0).value is 50 50 PASS text2.x.baseVal.getItem(0).value is 50
51 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1).. 51 PASS text2.x.baseVal.getItem(1) did not throw exception.
52 52
53 Assure that the 'itemInAnotherList' item is still live anymore, set value to 999 then back to 50 53 Assure that the 'itemInAnotherList' item is still live anymore, set value to 999 then back to 50
54 PASS itemInAnotherList.value = 999; is 999 54 PASS itemInAnotherList.value = 999; is 999
55 PASS itemInAnotherList.value is 999 55 PASS itemInAnotherList.value is 999
56 PASS text3.x.baseVal.getItem(0).value is 999 56 PASS text3.x.baseVal.getItem(0).value is 50
57 PASS itemInAnotherList.value = 50; is 50 57 PASS itemInAnotherList.value = 50; is 50
58 PASS itemInAnotherList.value is 50 58 PASS itemInAnotherList.value is 50
59 PASS text3.x.baseVal.getItem(0).value is 50 59 PASS text3.x.baseVal.getItem(0).value is 50
60 60
61 Move item from text3 to text4 61 Copy item from text3 to text4
62 PASS text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) is itemInAnotherList 62 PASS text4.x.baseVal.initialize(text3.x.baseVal.getItem(0)) is itemInAnotherList
63 PASS text4.x.baseVal.getItem(0).value is 50 63 PASS text4.x.baseVal.getItem(0).value is 50
64 PASS text3.x.baseVal.getItem(0) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (0) is greater than or equal to the maximum bound (0).. 64 PASS text3.x.baseVal.getItem(0) did not throw exception.
65 65
66 Initialize text3 using setAttribute('x', '50') 66 Initialize text2 using setAttribute('x', '50')
67 PASS text3.x.baseVal.getItem(0).value is 50 67 PASS text2.x.baseVal.getItem(0).value is 50
68 68
69 Final check whether the lists all look like expected 69 Final check whether the lists all look like expected
70 PASS text1.x.baseVal.getItem(0).value is 50 70 PASS text1.x.baseVal.getItem(0).value is 50
71 PASS text2.x.baseVal.getItem(0).value is 50 71 PASS text2.x.baseVal.getItem(0).value is 50
72 PASS text3.x.baseVal.getItem(0).value is 50 72 PASS text3.x.baseVal.getItem(0).value is 50
73 PASS text4.x.baseVal.getItem(0).value is 50 73 PASS text4.x.baseVal.getItem(0).value is 50
74 PASS text1.x.baseVal.numberOfItems is 1 74 PASS text1.x.baseVal.numberOfItems is 1
75 PASS text2.x.baseVal.numberOfItems is 1 75 PASS text2.x.baseVal.numberOfItems is 1
76 PASS text3.x.baseVal.numberOfItems is 1 76 PASS text3.x.baseVal.numberOfItems is 1
77 PASS text4.x.baseVal.numberOfItems is 1 77 PASS text4.x.baseVal.numberOfItems is 1
78 PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1).. 78 PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
79 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1).. 79 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
80 PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1).. 80 PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
81 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1).. 81 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (1) is greater than or equal to the maximum bound (1)..
82 82
83 The test passes if you only see 'PASS' messages, and all five text elements on t op look the same 83 The test passes if you only see 'PASS' messages, and all five text elements on t op look the same
84 84
85 PASS successfullyParsed is true 85 PASS successfullyParsed is true
86 86
87 TEST COMPLETE 87 TEST COMPLETE
88 88
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGLengthList-initialize.xhtml ('k') | LayoutTests/svg/dom/SVGLengthList-insertItemBefore.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698