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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/selection/extend-40-expected.txt

Issue 2710593002: Selection API: collapse(), setBaseAndExtent(), and extend() don't need to have code to check negati… (Closed)
Patch Set: Created 3 years, 10 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
(Empty)
1 This is a testharness.js-based test.
2 Found 176 tests; 174 PASS, 2 FAIL, 0 TIMEOUT, 0 NOTRUN.
3 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 0 [para s[0].firstChild, -1]
4 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 0 [par as[0].firstChild, -1]
5 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 1 [para s[0].firstChild, 0]
6 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 1 [par as[0].firstChild, 0]
7 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 2 [para s[0].firstChild, 1]
8 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 2 [par as[0].firstChild, 1]
9 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 3 [para s[0].firstChild, 2]
10 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 3 [par as[0].firstChild, 2]
11 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 4 [para s[0].firstChild, 8]
12 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 4 [par as[0].firstChild, 8]
13 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 5 [para s[0].firstChild, 9]
14 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 5 [par as[0].firstChild, 9]
15 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 6 [para s[0].firstChild, 10]
16 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 6 [par as[0].firstChild, 10]
17 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 7 [para s[0].firstChild, 65535]
18 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 7 [par as[0].firstChild, 65535]
19 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 8 [para s[1].firstChild, -1]
20 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 8 [par as[1].firstChild, -1]
21 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 9 [para s[1].firstChild, 0]
22 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 9 [par as[1].firstChild, 0]
23 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 10 [par as[1].firstChild, 1]
24 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 10 [pa ras[1].firstChild, 1]
25 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 11 [par as[1].firstChild, 2]
26 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 11 [pa ras[1].firstChild, 2]
27 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 12 [par as[1].firstChild, 8]
28 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 12 [pa ras[1].firstChild, 8]
29 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 13 [par as[1].firstChild, 9]
30 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 13 [pa ras[1].firstChild, 9]
31 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 14 [par as[1].firstChild, 10]
32 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 14 [pa ras[1].firstChild, 10]
33 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 15 [par as[1].firstChild, 65535]
34 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 15 [pa ras[1].firstChild, 65535]
35 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 16 [det achedPara1.firstChild, 0]
36 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 16 [de tachedPara1.firstChild, 0]
37 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 17 [det achedPara1.firstChild, 1]
38 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 17 [de tachedPara1.firstChild, 1]
39 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 18 [det achedPara1.firstChild, 8]
40 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 18 [de tachedPara1.firstChild, 8]
41 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 19 [det achedPara1.firstChild, 9]
42 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 19 [de tachedPara1.firstChild, 9]
43 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 20 [for eignPara1.firstChild, 0]
44 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 20 [fo reignPara1.firstChild, 0]
45 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 21 [for eignPara1.firstChild, 1]
46 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 21 [fo reignPara1.firstChild, 1]
47 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 22 [for eignPara1.firstChild, 8]
48 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 22 [fo reignPara1.firstChild, 8]
49 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 23 [for eignPara1.firstChild, 9]
50 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 23 [fo reignPara1.firstChild, 9]
51 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 24 [doc ument.documentElement, -1]
52 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 24 [do cument.documentElement, -1]
53 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 25 [doc ument.documentElement, 0]
54 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 25 [do cument.documentElement, 0]
55 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 26 [doc ument.documentElement, 1]
56 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 26 [do cument.documentElement, 1]
57 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 27 [doc ument.documentElement, 2]
58 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 27 [do cument.documentElement, 2]
59 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 28 [doc ument.documentElement, 7]
60 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 28 [do cument.documentElement, 7]
61 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 29 [doc ument.head, 1]
62 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 29 [do cument.head, 1]
63 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 30 [doc ument.body, 3]
64 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 30 [do cument.body, 3]
65 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 31 [for eignDoc.documentElement, 0]
66 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 31 [fo reignDoc.documentElement, 0]
67 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 32 [for eignDoc.documentElement, 1]
68 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 32 [fo reignDoc.documentElement, 1]
69 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 33 [for eignDoc.head, 0]
70 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 33 [fo reignDoc.head, 0]
71 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 34 [for eignDoc.body, 1]
72 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 34 [fo reignDoc.body, 1]
73 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 35 [par as[0], 0]
74 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 35 [pa ras[0], 0]
75 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 36 [par as[0], 1]
76 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 36 [pa ras[0], 1]
77 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 37 [par as[0], 2]
78 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 37 [pa ras[0], 2]
79 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 38 [par as[1], 0]
80 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 38 [pa ras[1], 0]
81 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 39 [par as[1], 1]
82 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 39 [pa ras[1], 1]
83 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 40 [par as[1], 2]
84 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 40 [pa ras[1], 2]
85 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 41 [det achedPara1, 0]
86 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 41 [de tachedPara1, 0]
87 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 42 [det achedPara1, 1]
88 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 42 [de tachedPara1, 1]
89 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 43 [tes tDiv, 0]
90 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 43 [te stDiv, 0]
91 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 44 [tes tDiv, 3]
92 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 44 [te stDiv, 3]
93 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 45 [doc ument, -1]
94 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 45 [do cument, -1]
95 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 46 [doc ument, 0]
96 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 46 [do cument, 0]
97 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 47 [doc ument, 1]
98 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 47 [do cument, 1]
99 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 48 [doc ument, 2]
100 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 48 [do cument, 2]
101 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 49 [doc ument, 3]
102 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 49 [do cument, 3]
103 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 50 [com ment, -1]
104 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 50 [co mment, -1]
105 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 51 [com ment, 0]
106 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 51 [co mment, 0]
107 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 52 [com ment, 4]
108 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 52 [co mment, 4]
109 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 53 [com ment, 96]
110 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 53 [co mment, 96]
111 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 54 [for eignDoc, 0]
112 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 54 [fo reignDoc, 0]
113 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 55 [for eignDoc, 1]
114 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 55 [fo reignDoc, 1]
115 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 56 [for eignComment, 2]
116 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 56 [fo reignComment, 2]
117 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 57 [for eignTextNode, 0]
118 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 57 [fo reignTextNode, 0]
119 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 58 [for eignTextNode, 36]
120 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 58 [fo reignTextNode, 36]
121 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 59 [xml Doc, -1]
122 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 59 [xm lDoc, -1]
123 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 60 [xml Doc, 0]
124 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 60 [xm lDoc, 0]
125 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 61 [xml Doc, 1]
126 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 61 [xm lDoc, 1]
127 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 62 [xml Doc, 5]
128 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 62 [xm lDoc, 5]
129 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 63 [xml Comment, 0]
130 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 63 [xm lComment, 0]
131 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 64 [xml Comment, 4]
132 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 64 [xm lComment, 4]
133 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 65 [pro cessingInstruction, 0]
134 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 65 [pr ocessingInstruction, 0]
135 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 66 [pro cessingInstruction, 5]
136 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 66 [pr ocessingInstruction, 5]
137 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 67 [pro cessingInstruction, 9]
138 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 67 [pr ocessingInstruction, 9]
139 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 68 [det achedTextNode, 0]
140 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 68 [de tachedTextNode, 0]
141 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 69 [det achedTextNode, 8]
142 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 69 [de tachedTextNode, 8]
143 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 70 [det achedForeignTextNode, 0]
144 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 70 [de tachedForeignTextNode, 0]
145 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 71 [det achedForeignTextNode, 8]
146 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 71 [de tachedForeignTextNode, 8]
147 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 72 [det achedXmlTextNode, 0]
148 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 72 [de tachedXmlTextNode, 0]
149 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 73 [det achedXmlTextNode, 8]
150 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 73 [de tachedXmlTextNode, 8]
151 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 74 [det achedProcessingInstruction, 12]
152 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 74 [de tachedProcessingInstruction, 12]
153 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 75 [det achedComment, 3]
154 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 75 [de tachedComment, 3]
155 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 76 [det achedComment, 5]
156 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 76 [de tachedComment, 5]
157 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 77 [det achedForeignComment, 0]
158 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 77 [de tachedForeignComment, 0]
159 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 78 [det achedForeignComment, 4]
160 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 78 [de tachedForeignComment, 4]
161 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 79 [det achedXmlComment, 2]
162 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 79 [de tachedXmlComment, 2]
163 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 80 [doc frag, 0]
164 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 80 [do cfrag, 0]
165 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 81 [for eignDocfrag, 0]
166 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 81 [fo reignDocfrag, 0]
167 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 82 [xml Docfrag, 0]
168 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 82 [xm lDocfrag, 0]
169 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 83 [doc type, 0]
170 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 83 [do ctype, 0]
171 FAIL extend() forwards with range 40 [paras[3], 1, comment, 8] and point 84 [doc type, -17] assert_throws: extend() to a doctype must throw InvalidNodeTypeError function "function () {
172 selection.extend(node, offset);
173 }" threw object "IndexSizeError: Failed to execute 'extend' on 'Selectio n': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_ERR : property "code" is equal to 1, expected 24
174 FAIL extend() backwards with range 40 [paras[3], 1, comment, 8] and point 84 [do ctype, -17] assert_throws: extend() to a doctype must throw InvalidNodeTypeError function "function () {
175 selection.extend(node, offset);
176 }" threw object "IndexSizeError: Failed to execute 'extend' on 'Selectio n': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_ERR : property "code" is equal to 1, expected 24
177 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 85 [doc type, 1]
178 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 85 [do ctype, 1]
179 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 86 [for eignDoctype, 0]
180 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 86 [fo reignDoctype, 0]
181 PASS extend() forwards with range 40 [paras[3], 1, comment, 8] and point 87 [xml Doctype, 0]
182 PASS extend() backwards with range 40 [paras[3], 1, comment, 8] and point 87 [xm lDoctype, 0]
183 Harness: the test ran to completion.
184
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698