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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 | Annotate | Revision Log
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
11 Check initial list state of text1 11 Check initial list state of text1
12 PASS text1.x.baseVal.numberOfItems is 3 12 PASS text1.x.baseVal.numberOfItems is 3
13 PASS text1.x.baseVal.getItem(0).value is 500 13 PASS text1.x.baseVal.getItem(0).value is 500
14 PASS text1.x.baseVal.getItem(1).value is 1000 14 PASS text1.x.baseVal.getItem(1).value is 1000
15 PASS text1.x.baseVal.getItem(2).value is 1500 15 PASS text1.x.baseVal.getItem(2).value is 1500
16 PASS text1.x.baseVal.getItem(3) threw exception Error: IndexSizeError: DOM Excep tion 1. 16 PASS text1.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
17 17
18 Check initial list state of text2 18 Check initial list state of text2
19 PASS text2.x.baseVal.numberOfItems is 2 19 PASS text2.x.baseVal.numberOfItems is 2
20 PASS text2.x.baseVal.getItem(0).value is 50 20 PASS text2.x.baseVal.getItem(0).value is 50
21 PASS text2.x.baseVal.getItem(1).value is 500 21 PASS text2.x.baseVal.getItem(1).value is 500
22 PASS text2.x.baseVal.getItem(2) threw exception Error: IndexSizeError: DOM Excep tion 1. 22 PASS text2.x.baseVal.getItem(2) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
23 23
24 Check initial list state of text3 24 Check initial list state of text3
25 PASS text3.x.baseVal.numberOfItems is 3 25 PASS text3.x.baseVal.numberOfItems is 3
26 PASS text3.x.baseVal.getItem(0).value is 50 26 PASS text3.x.baseVal.getItem(0).value is 50
27 PASS text3.x.baseVal.getItem(1).value is 500 27 PASS text3.x.baseVal.getItem(1).value is 500
28 PASS text3.x.baseVal.getItem(2).value is 50 28 PASS text3.x.baseVal.getItem(2).value is 50
29 PASS text3.x.baseVal.getItem(3) threw exception Error: IndexSizeError: DOM Excep tion 1. 29 PASS text3.x.baseVal.getItem(3) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
30 30
31 Check initial list state of text4 31 Check initial list state of text4
32 PASS text4.x.baseVal.numberOfItems is 1 32 PASS text4.x.baseVal.numberOfItems is 1
33 PASS text4.x.baseVal.getItem(0).value is 500 33 PASS text4.x.baseVal.getItem(0).value is 500
34 PASS text4.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Excep tion 1. 34 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
35 35
36 Create a new SVGLength object, that will be the only x coordinate in the first t ext element. 36 Create a new SVGLength object, that will be the only x coordinate in the first t ext element.
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 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 Error: IndexSizeError: DOM Excep tion 1. 51 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
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 999
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 Move 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 Error: IndexSizeError: DOM Excep tion 1. 64 PASS text3.x.baseVal.getItem(0) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
65 65
66 Initialize text3 using setAttribute('x', '50') 66 Initialize text3 using setAttribute('x', '50')
67 PASS text3.x.baseVal.getItem(0).value is 50 67 PASS text3.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 Error: IndexSizeError: DOM Excep tion 1. 78 PASS text1.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
79 PASS text2.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Excep tion 1. 79 PASS text2.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
80 PASS text3.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Excep tion 1. 80 PASS text3.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
81 PASS text4.x.baseVal.getItem(1) threw exception Error: IndexSizeError: DOM Excep tion 1. 81 PASS text4.x.baseVal.getItem(1) threw exception IndexSizeError: Index or size wa s negative, or greater than the allowed value..
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

Powered by Google App Engine
This is Rietveld 408576698