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

Side by Side Diff: LayoutTests/svg/dom/SVGLengthList-removeItem-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 This is a test of the SVGLengthList::removeItem() API.
4 This is a test of the SVGLengthList::appendItem() API.
5 4
6 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
7 6
8 7
9 8
10 Create a new SVGLength object, with value=150 9 Check initial list state of text1
11 PASS newLength1.value is 150 10 PASS text.x.baseVal.numberOfItems is 5
11 PASS text.x.baseVal.getItem(0).value is 500
12 PASS text.x.baseVal.getItem(1).value is 50
13 PASS text.x.baseVal.getItem(2).value is 100
14 PASS text.x.baseVal.getItem(3).value is 900
15 PASS text.x.baseVal.getItem(4).value is 150
16 PASS text.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execute 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal t o the maximum bound (5)..
12 17
13 Check initial list state of text1 18 Remove fourth item of text1
14 PASS text1.x.baseVal.numberOfItems is 5 19 PASS text.x.baseVal.removeItem(0).value is 500
15 PASS text1.x.baseVal.getItem(0).value is 500
16 PASS text1.x.baseVal.getItem(1).value is 50
17 PASS text1.x.baseVal.getItem(2).value is 100
18 PASS text1.x.baseVal.getItem(3).value is 900
19 PASS text1.x.baseVal.getItem(4).value is 1000
20 PASS text1.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
21 20
22 Check initial list state of text2 21 Remove third item of text1
23 PASS text2.x.baseVal.numberOfItems is 3 22 PASS text.x.baseVal.removeItem(2).value is 900
24 PASS text2.x.baseVal.getItem(0).value is 50
25 PASS text2.x.baseVal.getItem(1).value is 100
26 PASS text2.x.baseVal.getItem(2).value is 1000
27 PASS text2.x.baseVal.getItem(3) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (3) is greater than or equal to the maximum bound (3)..
28 23
29 Append fourth item x=900 to the text1 x list 24 The test passes if you only see 'PASS' messages, and both text elements on top l ook the same
30 PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(3)) is text1.x.baseVal.g etItem(4)
31 PASS text1.x.baseVal.numberOfItems is 5
32 PASS text1.x.baseVal.getItem(0).value is 500
33 PASS text1.x.baseVal.getItem(1).value is 50
34 PASS text1.x.baseVal.getItem(2).value is 100
35 PASS text1.x.baseVal.getItem(3).value is 1000
36 PASS text1.x.baseVal.getItem(4).value is 900
37 PASS text1.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
38
39 Append first item x=500 to the text1 x list
40 PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(0)) is text1.x.baseVal.g etItem(4)
41 PASS text1.x.baseVal.numberOfItems is 5
42 PASS text1.x.baseVal.getItem(0).value is 50
43 PASS text1.x.baseVal.getItem(1).value is 100
44 PASS text1.x.baseVal.getItem(2).value is 1000
45 PASS text1.x.baseVal.getItem(3).value is 900
46 PASS text1.x.baseVal.getItem(4).value is 500
47 PASS text1.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
48
49 Append 'newLength1' to the text1 x list
50 PASS text1.x.baseVal.appendItem(newLength1) is text1.x.baseVal.getItem(5)
51 PASS text1.x.baseVal.numberOfItems is 6
52 PASS text1.x.baseVal.getItem(0).value is 50
53 PASS text1.x.baseVal.getItem(1).value is 100
54 PASS text1.x.baseVal.getItem(2).value is 1000
55 PASS text1.x.baseVal.getItem(3).value is 900
56 PASS text1.x.baseVal.getItem(4).value is 500
57 PASS text1.x.baseVal.getItem(5).value is 150
58 PASS text1.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal to the maximum bound (6)..
59
60 Append third and fourth item of the text1 x list to the text2 x list
61 PASS text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 1000
62 PASS text2.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 900
63 PASS text1.x.baseVal.numberOfItems is 4
64 PASS text1.x.baseVal.getItem(0).value is 50
65 PASS text1.x.baseVal.getItem(1).value is 100
66 PASS text1.x.baseVal.getItem(2).value is 500
67 PASS text1.x.baseVal.getItem(3).value is 150
68 PASS text1.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
69 PASS text2.x.baseVal.numberOfItems is 5
70 PASS text2.x.baseVal.getItem(0).value is 50
71 PASS text2.x.baseVal.getItem(1).value is 100
72 PASS text2.x.baseVal.getItem(2).value is 1000
73 PASS text2.x.baseVal.getItem(3).value is 1000
74 PASS text2.x.baseVal.getItem(4).value is 900
75 PASS text2.x.baseVal.getItem(5) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (5) is greater than or equal to the maximum bound (5)..
76 PASS newLength2.value is 150
77
78 Shuffle around items in text1 and text2 list using appendItem, to get x=50,100,1 50,... in both lists
79 PASS text1.x.baseVal.appendItem(text1.x.baseVal.getItem(2)).value is 500
80 PASS text2.x.baseVal.appendItem(newLength2).value is 150
81 PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(2)).value is 1000
82 PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(3)).value is 900
83 PASS text2.x.baseVal.appendItem(text2.x.baseVal.getItem(2)).value is 1000
84 PASS text1.x.baseVal.numberOfItems is 4
85 PASS text1.x.baseVal.getItem(0).value is 50
86 PASS text1.x.baseVal.getItem(1).value is 100
87 PASS text1.x.baseVal.getItem(2).value is 150
88 PASS text1.x.baseVal.getItem(3).value is 500
89 PASS text1.x.baseVal.getItem(4) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (4) is greater than or equal to the maximum bound (4)..
90 PASS text2.x.baseVal.numberOfItems is 6
91 PASS text2.x.baseVal.getItem(0).value is 50
92 PASS text2.x.baseVal.getItem(1).value is 100
93 PASS text2.x.baseVal.getItem(2).value is 150
94 PASS text2.x.baseVal.getItem(3).value is 1000
95 PASS text2.x.baseVal.getItem(4).value is 900
96 PASS text2.x.baseVal.getItem(5).value is 1000
97 PASS text2.x.baseVal.getItem(6) threw exception IndexSizeError: Failed to execut e 'getItem' on 'SVGLengthList': The index provided (6) is greater than or equal to the maximum bound (6)..
98
99 The test passes if you only see 'PASS' messages, and all three text elements on top look the same
100 25
101 PASS successfullyParsed is true 26 PASS successfullyParsed is true
102 27
103 TEST COMPLETE 28 TEST COMPLETE
104 29
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGLengthList-removeItem.xhtml ('k') | LayoutTests/svg/dom/SVGLengthList-replaceItem.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698