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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/selection/collapse-30-expected.txt

Issue 2642393002: Import wpt@40665266227e475bc4a56884247d8c09d78dfb6a (Closed)
Patch Set: rebaseline-cl Created 3 years, 11 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 CONSOLE ERROR: line 8: The given range isn't in document.
2 CONSOLE ERROR: line 8: The given range isn't in document.
3 CONSOLE ERROR: line 8: The given range isn't in document.
4 CONSOLE ERROR: line 8: The given range isn't in document.
5 CONSOLE ERROR: line 8: The given range isn't in document.
6 CONSOLE ERROR: line 8: The given range isn't in document.
7 CONSOLE ERROR: line 8: The given range isn't in document.
8 CONSOLE ERROR: line 8: The given range isn't in document.
9 CONSOLE ERROR: line 8: The given range isn't in document.
10 CONSOLE ERROR: line 8: The given range isn't in document.
11 CONSOLE ERROR: line 8: The given range isn't in document.
12 CONSOLE ERROR: line 8: The given range isn't in document.
13 CONSOLE ERROR: line 8: The given range isn't in document.
14 CONSOLE ERROR: line 8: The given range isn't in document.
15 CONSOLE ERROR: line 8: The given range isn't in document.
16 CONSOLE ERROR: line 8: The given range isn't in document.
17 CONSOLE ERROR: line 8: The given range isn't in document.
18 CONSOLE ERROR: line 8: The given range isn't in document.
19 CONSOLE ERROR: line 8: The given range isn't in document.
20 CONSOLE ERROR: line 8: The given range isn't in document.
21 CONSOLE ERROR: line 8: The given range isn't in document.
22 CONSOLE ERROR: line 8: The given range isn't in document.
23 CONSOLE ERROR: line 8: The given range isn't in document.
24 CONSOLE ERROR: line 8: The given range isn't in document.
25 CONSOLE ERROR: line 8: The given range isn't in document.
26 CONSOLE ERROR: line 8: The given range isn't in document.
27 CONSOLE ERROR: line 8: The given range isn't in document.
28 CONSOLE ERROR: line 8: The given range isn't in document.
29 CONSOLE ERROR: line 8: The given range isn't in document.
30 CONSOLE ERROR: line 8: The given range isn't in document.
31 CONSOLE ERROR: line 8: The given range isn't in document.
32 CONSOLE ERROR: line 8: The given range isn't in document.
33 CONSOLE ERROR: line 8: The given range isn't in document.
34 CONSOLE ERROR: line 8: The given range isn't in document.
35 CONSOLE ERROR: line 8: The given range isn't in document.
36 CONSOLE ERROR: line 8: The given range isn't in document.
37 CONSOLE ERROR: line 8: The given range isn't in document.
38 CONSOLE ERROR: line 8: The given range isn't in document.
39 CONSOLE ERROR: line 8: The given range isn't in document.
40 CONSOLE ERROR: line 8: The given range isn't in document.
41 CONSOLE ERROR: line 8: The given range isn't in document.
42 CONSOLE ERROR: line 8: The given range isn't in document.
43 CONSOLE ERROR: line 8: The given range isn't in document.
44 CONSOLE ERROR: line 8: The given range isn't in document.
45 CONSOLE ERROR: line 8: The given range isn't in document.
46 CONSOLE ERROR: line 8: The given range isn't in document.
47 CONSOLE ERROR: line 8: The given range isn't in document.
48 CONSOLE ERROR: line 8: The given range isn't in document.
49 CONSOLE ERROR: line 8: The given range isn't in document.
50 CONSOLE ERROR: line 8: The given range isn't in document.
51 CONSOLE ERROR: line 8: The given range isn't in document.
52 CONSOLE ERROR: line 8: The given range isn't in document.
53 CONSOLE ERROR: line 8: The given range isn't in document.
54 CONSOLE ERROR: line 8: The given range isn't in document.
55 CONSOLE ERROR: line 8: The given range isn't in document.
56 CONSOLE ERROR: line 8: The given range isn't in document.
57 CONSOLE ERROR: line 8: The given range isn't in document.
58 CONSOLE ERROR: line 8: The given range isn't in document.
59 CONSOLE ERROR: line 8: The given range isn't in document.
60 CONSOLE ERROR: line 8: The given range isn't in document.
61 CONSOLE ERROR: line 8: The given range isn't in document.
62 CONSOLE ERROR: line 8: The given range isn't in document.
63 CONSOLE ERROR: line 8: The given range isn't in document.
64 CONSOLE ERROR: line 8: The given range isn't in document.
65 CONSOLE ERROR: line 8: The given range isn't in document.
66 CONSOLE ERROR: line 8: The given range isn't in document.
67 CONSOLE ERROR: line 8: The given range isn't in document.
68 CONSOLE ERROR: line 8: The given range isn't in document.
69 CONSOLE ERROR: line 8: The given range isn't in document.
70 CONSOLE ERROR: line 8: The given range isn't in document.
71 CONSOLE ERROR: line 8: The given range isn't in document.
72 CONSOLE ERROR: line 8: The given range isn't in document.
73 CONSOLE ERROR: line 8: The given range isn't in document.
74 CONSOLE ERROR: line 8: The given range isn't in document.
75 CONSOLE ERROR: line 8: The given range isn't in document.
76 CONSOLE ERROR: line 8: The given range isn't in document.
77 CONSOLE ERROR: line 8: The given range isn't in document.
78 CONSOLE ERROR: line 8: The given range isn't in document.
79 CONSOLE ERROR: line 8: The given range isn't in document.
80 CONSOLE ERROR: line 8: The given range isn't in document.
81 CONSOLE ERROR: line 8: The given range isn't in document.
82 CONSOLE ERROR: line 8: The given range isn't in document.
83 CONSOLE ERROR: line 8: The given range isn't in document.
84 CONSOLE ERROR: line 8: The given range isn't in document.
85 CONSOLE ERROR: line 8: The given range isn't in document.
86 CONSOLE ERROR: line 8: The given range isn't in document.
87 CONSOLE ERROR: line 8: The given range isn't in document.
88 CONSOLE ERROR: line 8: The given range isn't in document.
89 CONSOLE ERROR: line 8: The given range isn't in document.
90 CONSOLE ERROR: line 8: The given range isn't in document.
91 CONSOLE ERROR: line 8: The given range isn't in document.
92 CONSOLE ERROR: line 8: The given range isn't in document.
93 CONSOLE ERROR: line 8: The given range isn't in document.
94 CONSOLE ERROR: line 8: The given range isn't in document.
95 CONSOLE ERROR: line 8: The given range isn't in document.
96 CONSOLE ERROR: line 8: The given range isn't in document.
97 CONSOLE ERROR: line 8: The given range isn't in document.
98 CONSOLE ERROR: line 8: The given range isn't in document.
99 CONSOLE ERROR: line 8: The given range isn't in document.
100 CONSOLE ERROR: line 8: The given range isn't in document.
101 CONSOLE ERROR: line 8: The given range isn't in document.
102 CONSOLE ERROR: line 8: The given range isn't in document.
103 CONSOLE ERROR: line 8: The given range isn't in document.
104 CONSOLE ERROR: line 8: The given range isn't in document.
105 CONSOLE ERROR: line 8: The given range isn't in document.
106 CONSOLE ERROR: line 8: The given range isn't in document.
107 CONSOLE ERROR: line 8: The given range isn't in document.
108 CONSOLE ERROR: line 8: The given range isn't in document.
109 CONSOLE ERROR: line 8: The given range isn't in document.
110 CONSOLE ERROR: line 8: The given range isn't in document.
111 CONSOLE ERROR: line 8: The given range isn't in document.
112 CONSOLE ERROR: line 8: The given range isn't in document.
113 CONSOLE ERROR: line 8: The given range isn't in document.
114 CONSOLE ERROR: line 8: The given range isn't in document.
115 CONSOLE ERROR: line 8: The given range isn't in document.
116 CONSOLE ERROR: line 8: The given range isn't in document.
117 CONSOLE ERROR: line 8: The given range isn't in document.
118 CONSOLE ERROR: line 8: The given range isn't in document.
119 CONSOLE ERROR: line 8: The given range isn't in document.
120 CONSOLE ERROR: line 8: The given range isn't in document.
121 CONSOLE ERROR: line 8: The given range isn't in document.
122 CONSOLE ERROR: line 8: The given range isn't in document.
123 CONSOLE ERROR: line 8: The given range isn't in document.
124 CONSOLE ERROR: line 8: The given range isn't in document.
125 CONSOLE ERROR: line 8: The given range isn't in document.
126 CONSOLE ERROR: line 8: The given range isn't in document.
127 CONSOLE ERROR: line 8: The given range isn't in document.
128 CONSOLE ERROR: line 8: The given range isn't in document.
129 CONSOLE ERROR: line 8: The given range isn't in document.
130 CONSOLE ERROR: line 8: The given range isn't in document.
131 CONSOLE ERROR: line 8: The given range isn't in document.
132 CONSOLE ERROR: line 8: The given range isn't in document.
133 CONSOLE ERROR: line 8: The given range isn't in document.
134 CONSOLE ERROR: line 8: The given range isn't in document.
135 CONSOLE ERROR: line 8: The given range isn't in document.
136 CONSOLE ERROR: line 8: The given range isn't in document.
137 CONSOLE ERROR: line 8: The given range isn't in document.
138 CONSOLE ERROR: line 8: The given range isn't in document.
139 CONSOLE ERROR: line 8: The given range isn't in document.
140 CONSOLE ERROR: line 8: The given range isn't in document.
141 CONSOLE ERROR: line 8: The given range isn't in document.
142 CONSOLE ERROR: line 8: The given range isn't in document.
143 CONSOLE ERROR: line 8: The given range isn't in document.
144 CONSOLE ERROR: line 8: The given range isn't in document.
145 CONSOLE ERROR: line 8: The given range isn't in document.
146 CONSOLE ERROR: line 8: The given range isn't in document.
147 CONSOLE ERROR: line 8: The given range isn't in document.
148 CONSOLE ERROR: line 8: The given range isn't in document.
149 CONSOLE ERROR: line 8: The given range isn't in document.
150 CONSOLE ERROR: line 8: The given range isn't in document.
151 CONSOLE ERROR: line 8: The given range isn't in document.
152 CONSOLE ERROR: line 8: The given range isn't in document.
153 CONSOLE ERROR: line 8: The given range isn't in document.
154 CONSOLE ERROR: line 8: The given range isn't in document.
155 CONSOLE ERROR: line 8: The given range isn't in document.
156 CONSOLE ERROR: line 8: The given range isn't in document.
157 CONSOLE ERROR: line 8: The given range isn't in document.
158 CONSOLE ERROR: line 8: The given range isn't in document.
159 CONSOLE ERROR: line 8: The given range isn't in document.
160 CONSOLE ERROR: line 8: The given range isn't in document.
161 CONSOLE ERROR: line 8: The given range isn't in document.
162 CONSOLE ERROR: line 8: The given range isn't in document.
163 CONSOLE ERROR: line 8: The given range isn't in document.
164 CONSOLE ERROR: line 8: The given range isn't in document.
165 CONSOLE ERROR: line 8: The given range isn't in document.
166 CONSOLE ERROR: line 8: The given range isn't in document.
167 CONSOLE ERROR: line 8: The given range isn't in document.
168 CONSOLE ERROR: line 8: The given range isn't in document.
169 CONSOLE ERROR: line 8: The given range isn't in document.
170 CONSOLE ERROR: line 8: The given range isn't in document.
171 CONSOLE ERROR: line 8: The given range isn't in document.
172 CONSOLE ERROR: line 8: The given range isn't in document.
173 CONSOLE ERROR: line 8: The given range isn't in document.
174 CONSOLE ERROR: line 8: The given range isn't in document.
175 CONSOLE ERROR: line 8: The given range isn't in document.
176 CONSOLE ERROR: line 8: The given range isn't in document.
177 CONSOLE ERROR: line 8: The given range isn't in document.
178 CONSOLE ERROR: line 8: The given range isn't in document.
179 CONSOLE ERROR: line 8: The given range isn't in document.
180 CONSOLE ERROR: line 8: The given range isn't in document.
181 CONSOLE ERROR: line 8: The given range isn't in document.
182 CONSOLE ERROR: line 8: The given range isn't in document.
183 CONSOLE ERROR: line 8: The given range isn't in document.
184 CONSOLE ERROR: line 8: The given range isn't in document.
185 CONSOLE ERROR: line 8: The given range isn't in document.
186 CONSOLE ERROR: line 8: The given range isn't in document.
187 CONSOLE ERROR: line 8: The given range isn't in document.
188 CONSOLE ERROR: line 8: The given range isn't in document.
189 CONSOLE ERROR: line 8: The given range isn't in document.
190 CONSOLE ERROR: line 8: The given range isn't in document.
191 CONSOLE ERROR: line 8: The given range isn't in document.
192 CONSOLE ERROR: line 8: The given range isn't in document.
193 CONSOLE ERROR: line 8: The given range isn't in document.
194 CONSOLE ERROR: line 8: The given range isn't in document.
195 CONSOLE ERROR: line 8: The given range isn't in document.
196 CONSOLE ERROR: line 8: The given range isn't in document.
197 CONSOLE ERROR: line 8: The given range isn't in document.
198 CONSOLE ERROR: line 8: The given range isn't in document.
199 CONSOLE ERROR: line 8: The given range isn't in document.
200 CONSOLE ERROR: line 8: The given range isn't in document.
201 CONSOLE ERROR: line 8: The given range isn't in document.
202 CONSOLE ERROR: line 8: The given range isn't in document.
203 CONSOLE ERROR: line 8: The given range isn't in document.
204 CONSOLE ERROR: line 8: The given range isn't in document.
205 CONSOLE ERROR: line 8: The given range isn't in document.
206 CONSOLE ERROR: line 8: The given range isn't in document.
207 CONSOLE ERROR: line 8: The given range isn't in document.
208 CONSOLE ERROR: line 8: The given range isn't in document.
209 CONSOLE ERROR: line 8: The given range isn't in document.
210 CONSOLE ERROR: line 8: The given range isn't in document.
211 CONSOLE ERROR: line 8: The given range isn't in document.
212 CONSOLE ERROR: line 8: The given range isn't in document.
213 CONSOLE ERROR: line 8: The given range isn't in document.
214 CONSOLE ERROR: line 8: The given range isn't in document.
215 CONSOLE ERROR: line 8: The given range isn't in document.
216 CONSOLE ERROR: line 8: The given range isn't in document.
217 CONSOLE ERROR: line 8: The given range isn't in document.
218 CONSOLE ERROR: line 8: The given range isn't in document.
219 CONSOLE ERROR: line 8: The given range isn't in document.
220 CONSOLE ERROR: line 8: The given range isn't in document.
221 CONSOLE ERROR: line 8: The given range isn't in document.
222 CONSOLE ERROR: line 8: The given range isn't in document.
223 CONSOLE ERROR: line 8: The given range isn't in document.
224 CONSOLE ERROR: line 8: The given range isn't in document.
225 CONSOLE ERROR: line 8: The given range isn't in document.
226 CONSOLE ERROR: line 8: The given range isn't in document.
227 CONSOLE ERROR: line 8: The given range isn't in document.
228 CONSOLE ERROR: line 8: The given range isn't in document.
229 CONSOLE ERROR: line 8: The given range isn't in document.
230 CONSOLE ERROR: line 8: The given range isn't in document.
231 CONSOLE ERROR: line 8: The given range isn't in document.
232 CONSOLE ERROR: line 8: The given range isn't in document.
233 CONSOLE ERROR: line 8: The given range isn't in document.
234 CONSOLE ERROR: line 8: The given range isn't in document.
235 CONSOLE ERROR: line 8: The given range isn't in document.
236 CONSOLE ERROR: line 8: The given range isn't in document.
237 CONSOLE ERROR: line 8: The given range isn't in document.
238 CONSOLE ERROR: line 8: The given range isn't in document.
239 CONSOLE ERROR: line 8: The given range isn't in document.
240 CONSOLE ERROR: line 8: The given range isn't in document.
241 CONSOLE ERROR: line 8: The given range isn't in document.
242 CONSOLE ERROR: line 8: The given range isn't in document.
243 CONSOLE ERROR: line 8: The given range isn't in document.
244 CONSOLE ERROR: line 8: The given range isn't in document.
245 CONSOLE ERROR: line 8: The given range isn't in document.
246 CONSOLE ERROR: line 8: The given range isn't in document.
247 CONSOLE ERROR: line 8: The given range isn't in document.
248 CONSOLE ERROR: line 8: The given range isn't in document.
249 CONSOLE ERROR: line 8: The given range isn't in document.
250 CONSOLE ERROR: line 8: The given range isn't in document.
251 CONSOLE ERROR: line 8: The given range isn't in document.
252 CONSOLE ERROR: line 8: The given range isn't in document.
253 CONSOLE ERROR: line 8: The given range isn't in document.
254 CONSOLE ERROR: line 8: The given range isn't in document.
255 CONSOLE ERROR: line 8: The given range isn't in document.
256 CONSOLE ERROR: line 8: The given range isn't in document.
257 CONSOLE ERROR: line 8: The given range isn't in document.
258 CONSOLE ERROR: line 8: The given range isn't in document.
259 CONSOLE ERROR: line 8: The given range isn't in document.
260 CONSOLE ERROR: line 8: The given range isn't in document.
261 CONSOLE ERROR: line 8: The given range isn't in document.
262 CONSOLE ERROR: line 8: The given range isn't in document.
263 CONSOLE ERROR: line 8: The given range isn't in document.
264 CONSOLE ERROR: line 8: The given range isn't in document.
265 CONSOLE ERROR: line 8: The given range isn't in document.
266 CONSOLE ERROR: line 8: The given range isn't in document.
267 CONSOLE ERROR: line 8: The given range isn't in document.
268 CONSOLE ERROR: line 8: The given range isn't in document.
269 CONSOLE ERROR: line 8: The given range isn't in document.
270 CONSOLE ERROR: line 8: The given range isn't in document.
271 CONSOLE ERROR: line 8: The given range isn't in document.
272 CONSOLE ERROR: line 8: The given range isn't in document.
273 CONSOLE ERROR: line 8: The given range isn't in document.
274 CONSOLE ERROR: line 8: The given range isn't in document.
275 CONSOLE ERROR: line 8: The given range isn't in document.
276 CONSOLE ERROR: line 8: The given range isn't in document.
277 CONSOLE ERROR: line 8: The given range isn't in document.
278 CONSOLE ERROR: line 8: The given range isn't in document.
279 CONSOLE ERROR: line 8: The given range isn't in document.
280 CONSOLE ERROR: line 8: The given range isn't in document.
281 CONSOLE ERROR: line 8: The given range isn't in document.
282 CONSOLE ERROR: line 8: The given range isn't in document.
283 CONSOLE ERROR: line 8: The given range isn't in document.
284 CONSOLE ERROR: line 8: The given range isn't in document.
285 CONSOLE ERROR: line 8: The given range isn't in document.
286 CONSOLE ERROR: line 8: The given range isn't in document.
287 CONSOLE ERROR: line 8: The given range isn't in document.
288 CONSOLE ERROR: line 8: The given range isn't in document.
289 CONSOLE ERROR: line 8: The given range isn't in document.
290 CONSOLE ERROR: line 8: The given range isn't in document.
291 CONSOLE ERROR: line 8: The given range isn't in document.
292 CONSOLE ERROR: line 8: The given range isn't in document.
293 CONSOLE ERROR: line 8: The given range isn't in document.
294 CONSOLE ERROR: line 8: The given range isn't in document.
295 CONSOLE ERROR: line 8: The given range isn't in document.
296 CONSOLE ERROR: line 8: The given range isn't in document.
297 CONSOLE ERROR: line 8: The given range isn't in document.
298 CONSOLE ERROR: line 8: The given range isn't in document.
299 CONSOLE ERROR: line 8: The given range isn't in document.
300 CONSOLE ERROR: line 8: The given range isn't in document.
301 CONSOLE ERROR: line 8: The given range isn't in document.
302 CONSOLE ERROR: line 8: The given range isn't in document.
303 CONSOLE ERROR: line 8: The given range isn't in document.
304 CONSOLE ERROR: line 8: The given range isn't in document.
305 CONSOLE ERROR: line 8: The given range isn't in document.
306 CONSOLE ERROR: line 8: The given range isn't in document.
307 CONSOLE ERROR: line 8: The given range isn't in document.
308 CONSOLE ERROR: line 8: The given range isn't in document.
309 CONSOLE ERROR: line 8: The given range isn't in document.
310 CONSOLE ERROR: line 8: The given range isn't in document.
311 CONSOLE ERROR: line 8: The given range isn't in document.
312 CONSOLE ERROR: line 8: The given range isn't in document.
313 CONSOLE ERROR: line 8: The given range isn't in document.
314 CONSOLE ERROR: line 8: The given range isn't in document.
315 CONSOLE ERROR: line 8: The given range isn't in document.
316 CONSOLE ERROR: line 8: The given range isn't in document.
317 CONSOLE ERROR: line 8: The given range isn't in document.
318 CONSOLE ERROR: line 8: The given range isn't in document.
319 CONSOLE ERROR: line 8: The given range isn't in document.
320 CONSOLE ERROR: line 8: The given range isn't in document.
321 CONSOLE ERROR: line 8: The given range isn't in document.
322 CONSOLE ERROR: line 8: The given range isn't in document.
323 CONSOLE ERROR: line 8: The given range isn't in document.
324 CONSOLE ERROR: line 8: The given range isn't in document.
325 CONSOLE ERROR: line 8: The given range isn't in document.
326 CONSOLE ERROR: line 8: The given range isn't in document.
327 CONSOLE ERROR: line 8: The given range isn't in document.
328 CONSOLE ERROR: line 8: The given range isn't in document.
329 CONSOLE ERROR: line 8: The given range isn't in document.
330 CONSOLE ERROR: line 8: The given range isn't in document.
331 CONSOLE ERROR: line 8: The given range isn't in document.
332 CONSOLE ERROR: line 8: The given range isn't in document.
333 CONSOLE ERROR: line 8: The given range isn't in document.
334 CONSOLE ERROR: line 8: The given range isn't in document.
335 CONSOLE ERROR: line 8: The given range isn't in document.
336 CONSOLE ERROR: line 8: The given range isn't in document.
337 CONSOLE ERROR: line 8: The given range isn't in document.
338 CONSOLE ERROR: line 8: The given range isn't in document.
339 CONSOLE ERROR: line 8: The given range isn't in document.
340 CONSOLE ERROR: line 8: The given range isn't in document.
341 CONSOLE ERROR: line 8: The given range isn't in document.
342 CONSOLE ERROR: line 8: The given range isn't in document.
343 CONSOLE ERROR: line 8: The given range isn't in document.
344 CONSOLE ERROR: line 8: The given range isn't in document.
345 CONSOLE ERROR: line 8: The given range isn't in document.
346 CONSOLE ERROR: line 8: The given range isn't in document.
347 CONSOLE ERROR: line 8: The given range isn't in document.
348 CONSOLE ERROR: line 8: The given range isn't in document.
349 CONSOLE ERROR: line 8: The given range isn't in document.
350 CONSOLE ERROR: line 8: The given range isn't in document.
351 CONSOLE ERROR: line 8: The given range isn't in document.
352 CONSOLE ERROR: line 8: The given range isn't in document.
353 This is a testharness.js-based test.
354 PASS Set up range 30 [paras[0], 0, paras[0].firstChild, 7]
355 PASS Set up range 31 [testDiv, 2, paras[4], 1]
356 PASS Set up range 32 [testDiv, 1, paras[2].firstChild, 5]
357 PASS Set up range 33 [document.documentElement, 1, document.body, 0]
358 PASS Set up range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0]
359 PASS Set up range 35 [document, 0, document, 1]
360 PASS Set up range 36 [document, 0, document, 2]
361 PASS Set up range 37 [document, 1, document, 2]
362 PASS Set up range 38 [testDiv, 0, comment, 5]
363 PASS Set up range 39 [paras[2].firstChild, 4, comment, 2]
364 PASS Set up range 40 [paras[3], 1, comment, 8]
365 PASS Set up range 41 [foreignDoc, 0, foreignDoc, 0]
366 PASS Set up range 42 [foreignDoc, 1, foreignComment, 2]
367 PASS Set up range 43 [foreignDoc.body, 0, foreignTextNode, 36]
368 PASS Set up range 44 [xmlDoc, 0, xmlDoc, 0]
369 PASS Set up range 45 [xmlDoc, 1, xmlComment, 0]
370 PASS Set up range 46 [detachedTextNode, 0, detachedTextNode, 8]
371 PASS Set up range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7]
372 PASS Set up range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8]
373 PASS Set up range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7]
374 PASS Set up range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8]
375 PASS Set up range 51 [detachedComment, 3, detachedComment, 4]
376 PASS Set up range 52 [detachedComment, 5, detachedComment, 5]
377 PASS Set up range 53 [detachedForeignComment, 0, detachedForeignComment, 1]
378 PASS Set up range 54 [detachedForeignComment, 4, detachedForeignComment, 4]
379 PASS Set up range 55 [detachedXmlComment, 2, detachedXmlComment, 6]
380 PASS Set up range 56 [docfrag, 0, docfrag, 0]
381 PASS Set up range 57 [foreignDocfrag, 0, foreignDocfrag, 0]
382 PASS Set up range 58 [xmlDocfrag, 0, xmlDocfrag, 0]
383 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 0 [paras[0].firstChil d, -1]
384 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 1 [paras[0].firstChil d, 0]
385 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 2 [paras[0].firstChil d, 1] assert_equals: focusOffset must equal the offset we collapse()d to expecte d 1 but got 2
386 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 3 [paras[0].firstChil d, 2]
387 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 4 [paras[0].firstChil d, 8]
388 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 5 [paras[0].firstChil d, 9] assert_equals: focusOffset must equal the offset we collapse()d to expecte d 9 but got 10
389 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 6 [paras[0].firstChil d, 10]
390 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 7 [paras[0].firstChil d, 65535]
391 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 8 [paras[1].firstChil d, -1]
392 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 9 [paras[1].firstChil d, 0] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
393 " but got Text node "Qrstuvwx"
394 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 10 [paras[1].firstChi ld, 1] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
395 " but got Text node "Qrstuvwx"
396 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 11 [paras[1].firstChi ld, 2] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
397 " but got Text node "Qrstuvwx"
398 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 12 [paras[1].firstChi ld, 8] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
399 " but got Text node "Qrstuvwx"
400 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 13 [paras[1].firstChi ld, 9] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
401 " but got Text node "Qrstuvwx"
402 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 14 [paras[1].firstChi ld, 10]
403 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 15 [paras[1].firstChi ld, 65535]
404 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 16 [detachedPara1.fir stChild, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
405 "
406 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 17 [detachedPara1.fir stChild, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
407 "
408 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 18 [detachedPara1.fir stChild, 8] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
409 "
410 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 19 [detachedPara1.fir stChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the o ffset is negative or greater than the node's length function "function () {
411 selection.collapse(point[0], point[1]);
412 }" did not throw
413 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 20 [foreignPara1.firs tChild, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
414 "
415 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 21 [foreignPara1.firs tChild, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
416 "
417 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 22 [foreignPara1.firs tChild, 8] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
418 "
419 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 23 [foreignPara1.firs tChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the of fset is negative or greater than the node's length function "function () {
420 selection.collapse(point[0], point[1]);
421 }" did not throw
422 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 24 [document.document Element, -1]
423 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 25 [document.document Element, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <html><head><title>Selection.collapse() tests</title>
424 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
425 "
426 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 26 [document.document Element, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <html><head><title>Selection.collapse() tests</title>
427 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
428 "
429 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 27 [document.document Element, 2] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <html><head><title>Selection.collapse() tests</title>
430 <me... but got Text node "Qrstuvwx"
431 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 28 [document.document Element, 7]
432 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
433 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
434 "
435 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
436 </p><p id... but got Text node "Qrstuvwx"
437 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 31 [foreignDoc.docume ntElement, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
438 "
439 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 32 [foreignDoc.docume ntElement, 1] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
440 "
441 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 33 [foreignDoc.head, 0] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <head><title></title></head> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
442 "
443 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 34 [foreignDoc.body, 1] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Tex t node "Äb̈c̈d̈ëf̈g̈ḧ
444 "
445 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 35 [paras[0], 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
446 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
447 "
448 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 36 [paras[0], 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
449 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
450 "
451 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 37 [paras[0], 2]
452 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 38 [paras[1], 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
453 </p> but got Text node "Qrstuvwx"
454 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 39 [paras[1], 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
455 </p> but got Text node "Qrstuvwx"
456 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 40 [paras[1], 2]
457 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 41 [detachedPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
458 "
459 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 42 [detachedPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
460 "
461 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 43 [testDiv, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
462 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
463 "
464 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 44 [testDiv, 3] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
465 </p><p id="b" s... but got Text node "Qrstuvwx"
466 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 45 [document, -1]
467 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 46 [document, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Document nod e with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
468 "
469 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 47 [document, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Document nod e with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
470 "
471 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 48 [document, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Document nod e with 2 children but got Text node "Qrstuvwx"
472 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 49 [document, 3]
473 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 50 [comment, -1]
474 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 51 [comment, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
475 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 52 [comment, 4] asser t_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
476 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 53 [comment, 96]
477 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 54 [foreignDoc, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Document n ode with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
478 "
479 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 55 [foreignDoc, 1] as sert_equals: focusNode must equal the node we collapse()d to expected Document n ode with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
480 "
481 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 56 [foreignComment, 2 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--"Commenter" and "commentator" mean different things. I'v...--> but g ot Text node "Äb̈c̈d̈ëf̈g̈ḧ
482 "
483 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 57 [foreignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
484 "
485 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 58 [foreignTextNode, 36] assert_equals: focusNode must equal the node we collapse()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Tex t node "Äb̈c̈d̈ëf̈g̈ḧ
486 "
487 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 59 [xmlDoc, -1]
488 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 60 [xmlDoc, 0] assert _equals: focusNode must equal the node we collapse()d to expected Document node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
489 "
490 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 61 [xmlDoc, 1] assert _equals: focusNode must equal the node we collapse()d to expected Document node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
491 "
492 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 62 [xmlDoc, 5] assert _throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
493 selection.collapse(point[0], point[1]);
494 }" did not throw
495 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 63 [xmlComment, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--I maliciously created a comment that will break incautiou...--> but got T ext node "Äb̈c̈d̈ëf̈g̈ḧ
496 "
497 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 64 [xmlComment, 4] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--I maliciously created a comment that will break incautiou...--> but got T ext node "Äb̈c̈d̈ëf̈g̈ḧ
498 "
499 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 65 [processingInstruc tion, 0] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \": syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
500 "
501 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 66 [processingInstruc tion, 5] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \": syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
502 "
503 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 67 [processingInstruc tion, 9] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \": syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
504 "
505 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
506 "
507 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
508 "
509 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 70 [detachedForeignTe xtNode, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
510 "
511 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 71 [detachedForeignTe xtNode, 8] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
512 "
513 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 72 [detachedXmlTextNo de, 0] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
514 "
515 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 73 [detachedXmlTextNo de, 8] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
516 "
517 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 74 [detachedProcessin gInstruction, 12] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "whippoorwill" and data "chirp chirp chirp" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
518 "
519 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 75 [detachedComment, 3] assert_equals: focusNode must equal the node we collapse()d to expected Comme nt node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
520 "
521 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 76 [detachedComment, 5] assert_equals: focusNode must equal the node we collapse()d to expected Comme nt node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
522 "
523 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 77 [detachedForeignCo mment, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
524 "
525 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 78 [detachedForeignCo mment, 4] assert_equals: focusNode must equal the node we collapse()d to expecte d Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
526 "
527 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 79 [detachedXmlCommen t, 2] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--בן חיים אליעזר--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
528 "
529 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 80 [docfrag, 0] asser t_equals: focusNode must equal the node we collapse()d to expected DocumentFragm ent node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
530 "
531 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 81 [foreignDocfrag, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Docume ntFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
532 "
533 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 82 [xmlDocfrag, 0] as sert_equals: focusNode must equal the node we collapse()d to expected DocumentFr agment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
534 "
535 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 83 [doctype, 0]
536 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 84 [doctype, -17] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
537 selection.collapse(point[0], point[1]);
538 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
539 PASS Range 30 [paras[0], 0, paras[0].firstChild, 7], point 85 [doctype, 1]
540 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 86 [foreignDoctype, 0 ] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
541 selection.collapse(point[0], point[1]);
542 }" did not throw
543 FAIL Range 30 [paras[0], 0, paras[0].firstChild, 7], point 87 [xmlDoctype, 0] as sert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
544 selection.collapse(point[0], point[1]);
545 }" did not throw
546 PASS Range 31 [testDiv, 2, paras[4], 1], point 0 [paras[0].firstChild, -1]
547 PASS Range 31 [testDiv, 2, paras[4], 1], point 1 [paras[0].firstChild, 0]
548 FAIL Range 31 [testDiv, 2, paras[4], 1], point 2 [paras[0].firstChild, 1] assert _equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
549 PASS Range 31 [testDiv, 2, paras[4], 1], point 3 [paras[0].firstChild, 2]
550 PASS Range 31 [testDiv, 2, paras[4], 1], point 4 [paras[0].firstChild, 8]
551 FAIL Range 31 [testDiv, 2, paras[4], 1], point 5 [paras[0].firstChild, 9] assert _equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
552 PASS Range 31 [testDiv, 2, paras[4], 1], point 6 [paras[0].firstChild, 10]
553 PASS Range 31 [testDiv, 2, paras[4], 1], point 7 [paras[0].firstChild, 65535]
554 PASS Range 31 [testDiv, 2, paras[4], 1], point 8 [paras[1].firstChild, -1]
555 FAIL Range 31 [testDiv, 2, paras[4], 1], point 9 [paras[1].firstChild, 0] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
556 " but got Text node "Qrstuvwx"
557 FAIL Range 31 [testDiv, 2, paras[4], 1], point 10 [paras[1].firstChild, 1] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
558 " but got Text node "Qrstuvwx"
559 FAIL Range 31 [testDiv, 2, paras[4], 1], point 11 [paras[1].firstChild, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
560 " but got Text node "Qrstuvwx"
561 FAIL Range 31 [testDiv, 2, paras[4], 1], point 12 [paras[1].firstChild, 8] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
562 " but got Text node "Qrstuvwx"
563 FAIL Range 31 [testDiv, 2, paras[4], 1], point 13 [paras[1].firstChild, 9] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
564 " but got Text node "Qrstuvwx"
565 PASS Range 31 [testDiv, 2, paras[4], 1], point 14 [paras[1].firstChild, 10]
566 PASS Range 31 [testDiv, 2, paras[4], 1], point 15 [paras[1].firstChild, 65535]
567 FAIL Range 31 [testDiv, 2, paras[4], 1], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
568 FAIL Range 31 [testDiv, 2, paras[4], 1], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
569 FAIL Range 31 [testDiv, 2, paras[4], 1], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
570 FAIL Range 31 [testDiv, 2, paras[4], 1], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
571 selection.collapse(point[0], point[1]);
572 }" did not throw
573 FAIL Range 31 [testDiv, 2, paras[4], 1], point 20 [foreignPara1.firstChild, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
574 FAIL Range 31 [testDiv, 2, paras[4], 1], point 21 [foreignPara1.firstChild, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
575 FAIL Range 31 [testDiv, 2, paras[4], 1], point 22 [foreignPara1.firstChild, 8] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
576 FAIL Range 31 [testDiv, 2, paras[4], 1], point 23 [foreignPara1.firstChild, 9] a ssert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is nega tive or greater than the node's length function "function () {
577 selection.collapse(point[0], point[1]);
578 }" did not throw
579 PASS Range 31 [testDiv, 2, paras[4], 1], point 24 [document.documentElement, -1]
580 FAIL Range 31 [testDiv, 2, paras[4], 1], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
581 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
582 "
583 FAIL Range 31 [testDiv, 2, paras[4], 1], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
584 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
585 "
586 FAIL Range 31 [testDiv, 2, paras[4], 1], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
587 <me... but got Text node "Qrstuvwx"
588 PASS Range 31 [testDiv, 2, paras[4], 1], point 28 [document.documentElement, 7]
589 FAIL Range 31 [testDiv, 2, paras[4], 1], point 29 [document.head, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <head> <title>Selection.collapse() tests</title>
590 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
591 "
592 FAIL Range 31 [testDiv, 2, paras[4], 1], point 30 [document.body, 3] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <body> <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
593 </p><p id... but got Text node "Qrstuvwx"
594 FAIL Range 31 [testDiv, 2, paras[4], 1], point 31 [foreignDoc.documentElement, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
595 FAIL Range 31 [testDiv, 2, paras[4], 1], point 32 [foreignDoc.documentElement, 1 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
596 FAIL Range 31 [testDiv, 2, paras[4], 1], point 33 [foreignDoc.head, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Element node <hea d><title></title></head> but got Text node "Qrstuvwx"
597 FAIL Range 31 [testDiv, 2, paras[4], 1], point 34 [foreignDoc.body, 1] assert_eq uals: focusNode must equal the node we collapse()d to expected Element node <bod y><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrst uvwx"
598 FAIL Range 31 [testDiv, 2, paras[4], 1], point 35 [paras[0], 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="a">A ̈b̈c̈d̈ëf̈g̈ḧ
599 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
600 "
601 FAIL Range 31 [testDiv, 2, paras[4], 1], point 36 [paras[0], 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="a">A ̈b̈c̈d̈ëf̈g̈ḧ
602 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
603 "
604 PASS Range 31 [testDiv, 2, paras[4], 1], point 37 [paras[0], 2]
605 FAIL Range 31 [testDiv, 2, paras[4], 1], point 38 [paras[1], 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="b" s tyle="display:none">Ijklmnop
606 </p> but got Text node "Qrstuvwx"
607 FAIL Range 31 [testDiv, 2, paras[4], 1], point 39 [paras[1], 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="b" s tyle="display:none">Ijklmnop
608 </p> but got Text node "Qrstuvwx"
609 PASS Range 31 [testDiv, 2, paras[4], 1], point 40 [paras[1], 2]
610 FAIL Range 31 [testDiv, 2, paras[4], 1], point 41 [detachedPara1, 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p>Opq rstuv</p> but got Text node "Qrstuvwx"
611 FAIL Range 31 [testDiv, 2, paras[4], 1], point 42 [detachedPara1, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p>Opq rstuv</p> but got Text node "Qrstuvwx"
612 FAIL Range 31 [testDiv, 2, paras[4], 1], point 43 [testDiv, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <div id="tes t"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
613 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
614 "
615 FAIL Range 31 [testDiv, 2, paras[4], 1], point 44 [testDiv, 3] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <div id="tes t"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
616 </p><p id="b" s... but got Text node "Qrstuvwx"
617 PASS Range 31 [testDiv, 2, paras[4], 1], point 45 [document, -1]
618 FAIL Range 31 [testDiv, 2, paras[4], 1], point 46 [document, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
619 "
620 FAIL Range 31 [testDiv, 2, paras[4], 1], point 47 [document, 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
621 "
622 FAIL Range 31 [testDiv, 2, paras[4], 1], point 48 [document, 2] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Qrstuvwx"
623 PASS Range 31 [testDiv, 2, paras[4], 1], point 49 [document, 3]
624 PASS Range 31 [testDiv, 2, paras[4], 1], point 50 [comment, -1]
625 FAIL Range 31 [testDiv, 2, paras[4], 1], point 51 [comment, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
626 FAIL Range 31 [testDiv, 2, paras[4], 1], point 52 [comment, 4] assert_equals: fo cusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
627 PASS Range 31 [testDiv, 2, paras[4], 1], point 53 [comment, 96]
628 FAIL Range 31 [testDiv, 2, paras[4], 1], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 c hildren but got Text node "Qrstuvwx"
629 FAIL Range 31 [testDiv, 2, paras[4], 1], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 c hildren but got Text node "Qrstuvwx"
630 FAIL Range 31 [testDiv, 2, paras[4], 1], point 56 [foreignComment, 2] assert_equ als: focusNode must equal the node we collapse()d to expected Comment node <!--" Commenter" and "commentator" mean different things. I'v...--> but got Text node "Qrstuvwx"
631 FAIL Range 31 [testDiv, 2, paras[4], 1], point 57 [foreignTextNode, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "I admi t that I harbor doubts about whether we really need..." but got Text node "Qrstu vwx"
632 FAIL Range 31 [testDiv, 2, paras[4], 1], point 58 [foreignTextNode, 36] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "I adm it that I harbor doubts about whether we really need..." but got Text node "Qrst uvwx"
633 PASS Range 31 [testDiv, 2, paras[4], 1], point 59 [xmlDoc, -1]
634 FAIL Range 31 [testDiv, 2, paras[4], 1], point 60 [xmlDoc, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Document node with 4 child ren but got Text node "Qrstuvwx"
635 FAIL Range 31 [testDiv, 2, paras[4], 1], point 61 [xmlDoc, 1] assert_equals: foc usNode must equal the node we collapse()d to expected Document node with 4 child ren but got Text node "Qrstuvwx"
636 FAIL Range 31 [testDiv, 2, paras[4], 1], point 62 [xmlDoc, 5] assert_throws: Mus t throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater t han the node's length function "function () {
637 selection.collapse(point[0], point[1]);
638 }" did not throw
639 FAIL Range 31 [testDiv, 2, paras[4], 1], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mal iciously created a comment that will break incautiou...--> but got Text node "Qr stuvwx"
640 FAIL Range 31 [testDiv, 2, paras[4], 1], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mal iciously created a comment that will break incautiou...--> but got Text node "Qr stuvwx"
641 FAIL Range 31 [testDiv, 2, paras[4], 1], point 65 [processingInstruction, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
642 FAIL Range 31 [testDiv, 2, paras[4], 1], point 66 [processingInstruction, 5] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
643 FAIL Range 31 [testDiv, 2, paras[4], 1], point 67 [processingInstruction, 9] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
644 FAIL Range 31 [testDiv, 2, paras[4], 1], point 68 [detachedTextNode, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Uvwxy zab" but got Text node "Qrstuvwx"
645 FAIL Range 31 [testDiv, 2, paras[4], 1], point 69 [detachedTextNode, 8] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Uvwxy zab" but got Text node "Qrstuvwx"
646 FAIL Range 31 [testDiv, 2, paras[4], 1], point 70 [detachedForeignTextNode, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
647 FAIL Range 31 [testDiv, 2, paras[4], 1], point 71 [detachedForeignTextNode, 8] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
648 FAIL Range 31 [testDiv, 2, paras[4], 1], point 72 [detachedXmlTextNode, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Kl mnopqr" but got Text node "Qrstuvwx"
649 FAIL Range 31 [testDiv, 2, paras[4], 1], point 73 [detachedXmlTextNode, 8] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Kl mnopqr" but got Text node "Qrstuvwx"
650 FAIL Range 31 [testDiv, 2, paras[4], 1], point 74 [detachedProcessingInstruction , 12] assert_equals: focusNode must equal the node we collapse()d to expected Pr ocessingInstruction node with target "whippoorwill" and data "chirp chirp chirp" but got Text node "Qrstuvwx"
651 FAIL Range 31 [testDiv, 2, paras[4], 1], point 75 [detachedComment, 3] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- Stuvwxyz--> but got Text node "Qrstuvwx"
652 FAIL Range 31 [testDiv, 2, paras[4], 1], point 76 [detachedComment, 5] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- Stuvwxyz--> but got Text node "Qrstuvwx"
653 FAIL Range 31 [testDiv, 2, paras[4], 1], point 77 [detachedForeignComment, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--אריה יהודה--> but got Text node "Qrstuvwx"
654 FAIL Range 31 [testDiv, 2, paras[4], 1], point 78 [detachedForeignComment, 4] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--אריה יהודה--> but got Text node "Qrstuvwx"
655 FAIL Range 31 [testDiv, 2, paras[4], 1], point 79 [detachedXmlComment, 2] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--בן חיים אליעזר--> but got Text node "Qrstuvwx"
656 FAIL Range 31 [testDiv, 2, paras[4], 1], point 80 [docfrag, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected DocumentFragment node wit h 0 children but got Text node "Qrstuvwx"
657 FAIL Range 31 [testDiv, 2, paras[4], 1], point 81 [foreignDocfrag, 0] assert_equ als: focusNode must equal the node we collapse()d to expected DocumentFragment n ode with 0 children but got Text node "Qrstuvwx"
658 FAIL Range 31 [testDiv, 2, paras[4], 1], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
659 PASS Range 31 [testDiv, 2, paras[4], 1], point 83 [doctype, 0]
660 FAIL Range 31 [testDiv, 2, paras[4], 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTyp e function "function () {
661 selection.collapse(point[0], point[1]);
662 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
663 PASS Range 31 [testDiv, 2, paras[4], 1], point 85 [doctype, 1]
664 FAIL Range 31 [testDiv, 2, paras[4], 1], point 86 [foreignDoctype, 0] assert_thr ows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docume ntType function "function () {
665 selection.collapse(point[0], point[1]);
666 }" did not throw
667 FAIL Range 31 [testDiv, 2, paras[4], 1], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
668 selection.collapse(point[0], point[1]);
669 }" did not throw
670 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 0 [paras[0].firstChild , -1]
671 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 1 [paras[0].firstChild , 0]
672 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
673 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 3 [paras[0].firstChild , 2]
674 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 4 [paras[0].firstChild , 8]
675 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
676 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 6 [paras[0].firstChild , 10]
677 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 7 [paras[0].firstChild , 65535]
678 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 8 [paras[1].firstChild , -1]
679 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
680 " but got Text node "Qrstuvwx"
681 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
682 " but got Text node "Qrstuvwx"
683 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
684 " but got Text node "Qrstuvwx"
685 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
686 " but got Text node "Qrstuvwx"
687 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
688 " but got Text node "Qrstuvwx"
689 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 14 [paras[1].firstChil d, 10]
690 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 15 [paras[1].firstChil d, 65535]
691 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 16 [detachedPara1.firs tChild, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
692 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 17 [detachedPara1.firs tChild, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
693 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 18 [detachedPara1.firs tChild, 8] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
694 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 19 [detachedPara1.firs tChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the of fset is negative or greater than the node's length function "function () {
695 selection.collapse(point[0], point[1]);
696 }" did not throw
697 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 20 [foreignPara1.first Child, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
698 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 21 [foreignPara1.first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
699 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 22 [foreignPara1.first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
700 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 23 [foreignPara1.first Child, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the off set is negative or greater than the node's length function "function () {
701 selection.collapse(point[0], point[1]);
702 }" did not throw
703 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 24 [document.documentE lement, -1]
704 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 25 [document.documentE lement, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
705 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
706 "
707 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 26 [document.documentE lement, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
708 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
709 "
710 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 27 [document.documentE lement, 2] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
711 <me... but got Text node "Qrstuvwx"
712 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 28 [document.documentE lement, 7]
713 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
714 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
715 "
716 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
717 </p><p id... but got Text node "Qrstuvwx"
718 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 31 [foreignDoc.documen tElement, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title></title></head><body><p>Efghijkl</p><p... b ut got Text node "Qrstuvwx"
719 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 32 [foreignDoc.documen tElement, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title></title></head><body><p>Efghijkl</p><p... b ut got Text node "Qrstuvwx"
720 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 33 [foreignDoc.head, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <head><title></title></head> but got Text node "Qrstuvwx"
721 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 34 [foreignDoc.body, 1 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrstuvwx"
722 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 35 [paras[0], 0] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
723 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
724 "
725 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 36 [paras[0], 1] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
726 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
727 "
728 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 37 [paras[0], 2]
729 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 38 [paras[1], 0] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
730 </p> but got Text node "Qrstuvwx"
731 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 39 [paras[1], 1] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
732 </p> but got Text node "Qrstuvwx"
733 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 40 [paras[1], 2]
734 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 41 [detachedPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Qrstuvwx"
735 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 42 [detachedPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Qrstuvwx"
736 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 43 [testDiv, 0] assert _equals: focusNode must equal the node we collapse()d to expected Element node < div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
737 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
738 "
739 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 44 [testDiv, 3] assert _equals: focusNode must equal the node we collapse()d to expected Element node < div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
740 </p><p id="b" s... but got Text node "Qrstuvwx"
741 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 45 [document, -1]
742 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 46 [document, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
743 "
744 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 47 [document, 1] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
745 "
746 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 48 [document, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
747 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 49 [document, 3]
748 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 50 [comment, -1]
749 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 51 [comment, 0] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--Alphabet soup?--> but got Text node "Qrstuvwx"
750 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 52 [comment, 4] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--Alphabet soup?--> but got Text node "Qrstuvwx"
751 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 53 [comment, 96]
752 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 54 [foreignDoc, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 3 children but got Text node "Qrstuvwx"
753 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 55 [foreignDoc, 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 3 children but got Text node "Qrstuvwx"
754 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 56 [foreignComment, 2] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--"Commenter" and "commentator" mean different things. I'v...--> but go t Text node "Qrstuvwx"
755 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 57 [foreignTextNode, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Text n ode "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
756 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 58 [foreignTextNode, 3 6] assert_equals: focusNode must equal the node we collapse()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
757 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 59 [xmlDoc, -1]
758 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 60 [xmlDoc, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 4 children but got Text node "Qrstuvwx"
759 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 61 [xmlDoc, 1] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 4 children but got Text node "Qrstuvwx"
760 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 62 [xmlDoc, 5] assert_ throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative o r greater than the node's length function "function () {
761 selection.collapse(point[0], point[1]);
762 }" did not throw
763 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 63 [xmlComment, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--I maliciously created a comment that will break incautiou...--> but got Te xt node "Qrstuvwx"
764 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 64 [xmlComment, 4] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--I maliciously created a comment that will break incautiou...--> but got Te xt node "Qrstuvwx"
765 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 65 [processingInstruct ion, 0] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
766 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 66 [processingInstruct ion, 5] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
767 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 67 [processingInstruct ion, 9] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
768 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
769 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
770 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 70 [detachedForeignTex tNode, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Cdefghij" but got Text node "Qrstuvwx"
771 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 71 [detachedForeignTex tNode, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Cdefghij" but got Text node "Qrstuvwx"
772 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 72 [detachedXmlTextNod e, 0] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Klmnopqr" but got Text node "Qrstuvwx"
773 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 73 [detachedXmlTextNod e, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Klmnopqr" but got Text node "Qrstuvwx"
774 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 74 [detachedProcessing Instruction, 12] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "whippoorwill" and data "chirp c hirp chirp" but got Text node "Qrstuvwx"
775 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 75 [detachedComment, 3 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
776 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 76 [detachedComment, 5 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
777 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 77 [detachedForeignCom ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
778 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 78 [detachedForeignCom ment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
779 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 79 [detachedXmlComment , 2] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
780 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 80 [docfrag, 0] assert _equals: focusNode must equal the node we collapse()d to expected DocumentFragme nt node with 0 children but got Text node "Qrstuvwx"
781 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 81 [foreignDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expected Documen tFragment node with 0 children but got Text node "Qrstuvwx"
782 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 82 [xmlDocfrag, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected DocumentFra gment node with 0 children but got Text node "Qrstuvwx"
783 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 83 [doctype, 0]
784 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
785 selection.collapse(point[0], point[1]);
786 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
787 PASS Range 32 [testDiv, 1, paras[2].firstChild, 5], point 85 [doctype, 1]
788 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
789 selection.collapse(point[0], point[1]);
790 }" did not throw
791 FAIL Range 32 [testDiv, 1, paras[2].firstChild, 5], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
792 selection.collapse(point[0], point[1]);
793 }" did not throw
794 PASS Range 33 [document.documentElement, 1, document.body, 0], point 0 [paras[0] .firstChild, -1]
795 PASS Range 33 [document.documentElement, 1, document.body, 0], point 1 [paras[0] .firstChild, 0]
796 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
797 PASS Range 33 [document.documentElement, 1, document.body, 0], point 3 [paras[0] .firstChild, 2]
798 PASS Range 33 [document.documentElement, 1, document.body, 0], point 4 [paras[0] .firstChild, 8]
799 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
800 PASS Range 33 [document.documentElement, 1, document.body, 0], point 6 [paras[0] .firstChild, 10]
801 PASS Range 33 [document.documentElement, 1, document.body, 0], point 7 [paras[0] .firstChild, 65535]
802 PASS Range 33 [document.documentElement, 1, document.body, 0], point 8 [paras[1] .firstChild, -1]
803 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
804 " but got Text node "Qrstuvwx"
805 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
806 " but got Text node "Qrstuvwx"
807 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
808 " but got Text node "Qrstuvwx"
809 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
810 " but got Text node "Qrstuvwx"
811 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
812 " but got Text node "Qrstuvwx"
813 PASS Range 33 [document.documentElement, 1, document.body, 0], point 14 [paras[1 ].firstChild, 10]
814 PASS Range 33 [document.documentElement, 1, document.body, 0], point 15 [paras[1 ].firstChild, 65535]
815 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 16 [detache dPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
816 "
817 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 17 [detache dPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
818 "
819 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 18 [detache dPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
820 "
821 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 19 [detache dPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()in g if the offset is negative or greater than the node's length function "function () {
822 selection.collapse(point[0], point[1]);
823 }" did not throw
824 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 20 [foreign Para1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
825 "
826 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 21 [foreign Para1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
827 "
828 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 22 [foreign Para1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
829 "
830 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 23 [foreign Para1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
831 selection.collapse(point[0], point[1]);
832 }" did not throw
833 PASS Range 33 [document.documentElement, 1, document.body, 0], point 24 [documen t.documentElement, -1]
834 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 25 [documen t.documentElement, 0] assert_equals: focusNode must equal the node we collapse() d to expected Element node <html><head><title>Selection.collapse() tests</title>
835 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
836 "
837 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 26 [documen t.documentElement, 1] assert_equals: focusNode must equal the node we collapse() d to expected Element node <html><head><title>Selection.collapse() tests</title>
838 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
839 "
840 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 27 [documen t.documentElement, 2] assert_equals: focusNode must equal the node we collapse() d to expected Element node <html><head><title>Selection.collapse() tests</title>
841 <me... but got Text node "Qrstuvwx"
842 PASS Range 33 [document.documentElement, 1, document.body, 0], point 28 [documen t.documentElement, 7]
843 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 29 [documen t.head, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <head><title>Selection.collapse() tests</title>
844 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
845 "
846 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 30 [documen t.body, 3] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
847 </p><p id... but got Text node "Qrstuvwx"
848 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 31 [foreign Doc.documentElement, 0] assert_equals: focusNode must equal the node we collapse ()d to expected Element node <html><head><title></title></head><body><p>Efghijkl </p><p... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
849 "
850 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 32 [foreign Doc.documentElement, 1] assert_equals: focusNode must equal the node we collapse ()d to expected Element node <html><head><title></title></head><body><p>Efghijkl </p><p... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
851 "
852 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 33 [foreign Doc.head, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <head><title></title></head> but got Text node "Äb̈c̈d̈ëf̈g̈ ḧ
853 "
854 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 34 [foreign Doc.body, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... b ut got Text node "Äb̈c̈d̈ëf̈g̈ḧ
855 "
856 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 35 [paras[0 ], 0] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
857 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
858 "
859 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 36 [paras[0 ], 1] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
860 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
861 "
862 PASS Range 33 [document.documentElement, 1, document.body, 0], point 37 [paras[0 ], 2]
863 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 38 [paras[1 ], 0] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <p id="b" style="display:none">Ijklmnop
864 </p> but got Text node "Qrstuvwx"
865 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 39 [paras[1 ], 1] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <p id="b" style="display:none">Ijklmnop
866 </p> but got Text node "Qrstuvwx"
867 PASS Range 33 [document.documentElement, 1, document.body, 0], point 40 [paras[1 ], 2]
868 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 41 [detache dPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <p>Opqrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
869 "
870 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 42 [detache dPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <p>Opqrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
871 "
872 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 43 [testDiv , 0] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
873 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
874 "
875 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 44 [testDiv , 3] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
876 </p><p id="b" s... but got Text node "Qrstuvwx"
877 PASS Range 33 [document.documentElement, 1, document.body, 0], point 45 [documen t, -1]
878 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 46 [documen t, 0] assert_equals: focusNode must equal the node we collapse()d to expected Do cument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
879 "
880 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 47 [documen t, 1] assert_equals: focusNode must equal the node we collapse()d to expected Do cument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
881 "
882 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 48 [documen t, 2] assert_equals: focusNode must equal the node we collapse()d to expected Do cument node with 2 children but got Text node "Qrstuvwx"
883 PASS Range 33 [document.documentElement, 1, document.body, 0], point 49 [documen t, 3]
884 PASS Range 33 [document.documentElement, 1, document.body, 0], point 50 [comment , -1]
885 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 51 [comment , 0] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
886 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 52 [comment , 4] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
887 PASS Range 33 [document.documentElement, 1, document.body, 0], point 53 [comment , 96]
888 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 54 [foreign Doc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
889 "
890 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 55 [foreign Doc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
891 "
892 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 56 [foreign Comment, 2] assert_equals: focusNode must equal the node we collapse()d to expec ted Comment node <!--"Commenter" and "commentator" mean different things. I'v.. .--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
893 "
894 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 57 [foreign TextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Text node "I admit that I harbor doubts about whether we really need..." bu t got Text node "Äb̈c̈d̈ëf̈g̈ḧ
895 "
896 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 58 [foreign TextNode, 36] assert_equals: focusNode must equal the node we collapse()d to exp ected Text node "I admit that I harbor doubts about whether we really need..." b ut got Text node "Äb̈c̈d̈ëf̈g̈ḧ
897 "
898 PASS Range 33 [document.documentElement, 1, document.body, 0], point 59 [xmlDoc, -1]
899 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 60 [xmlDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Docu ment node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
900 "
901 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 61 [xmlDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Docu ment node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
902 "
903 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
904 selection.collapse(point[0], point[1]);
905 }" did not throw
906 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 63 [xmlComm ent, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I maliciously created a comment that will break incautiou...--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
907 "
908 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 64 [xmlComm ent, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I maliciously created a comment that will break incautiou...--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
909 "
910 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 65 [process ingInstruction, 0] assert_equals: focusNode must equal the node we collapse()d t o expected ProcessingInstruction node with target "somePI" and data "Did you kno w that \":syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ ëf̈g̈ḧ
911 "
912 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 66 [process ingInstruction, 5] assert_equals: focusNode must equal the node we collapse()d t o expected ProcessingInstruction node with target "somePI" and data "Did you kno w that \":syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ ëf̈g̈ḧ
913 "
914 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 67 [process ingInstruction, 9] assert_equals: focusNode must equal the node we collapse()d t o expected ProcessingInstruction node with target "somePI" and data "Did you kno w that \":syn sync fromstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ ëf̈g̈ḧ
915 "
916 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 68 [detache dTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
917 "
918 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 69 [detache dTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to exp ected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
919 "
920 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 70 [detache dForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
921 "
922 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 71 [detache dForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
923 "
924 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 72 [detache dXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
925 "
926 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 73 [detache dXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
927 "
928 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 74 [detache dProcessingInstruction, 12] assert_equals: focusNode must equal the node we coll apse()d to expected ProcessingInstruction node with target "whippoorwill" and da ta "chirp chirp chirp" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
929 "
930 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 75 [detache dComment, 3] assert_equals: focusNode must equal the node we collapse()d to expe cted Comment node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
931 "
932 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 76 [detache dComment, 5] assert_equals: focusNode must equal the node we collapse()d to expe cted Comment node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
933 "
934 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 77 [detache dForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈e ̈f̈g̈ḧ
935 "
936 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 78 [detache dForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈e ̈f̈g̈ḧ
937 "
938 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 79 [detache dXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--בן חיים אליעזר--> but got Text node "Äb̈c̈ d̈ëf̈g̈ḧ
939 "
940 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 80 [docfrag , 0] assert_equals: focusNode must equal the node we collapse()d to expected Doc umentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
941 "
942 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 81 [foreign Docfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
943 "
944 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 82 [xmlDocf rag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
945 "
946 PASS Range 33 [document.documentElement, 1, document.body, 0], point 83 [doctype , 0]
947 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
948 selection.collapse(point[0], point[1]);
949 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
950 PASS Range 33 [document.documentElement, 1, document.body, 0], point 85 [doctype , 1]
951 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 86 [foreign Doctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing i f the node is a DocumentType function "function () {
952 selection.collapse(point[0], point[1]);
953 }" did not throw
954 FAIL Range 33 [document.documentElement, 1, document.body, 0], point 87 [xmlDoct ype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if th e node is a DocumentType function "function () {
955 selection.collapse(point[0], point[1]);
956 }" did not throw
957 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 0 [para s[0].firstChild, -1]
958 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 1 [para s[0].firstChild, 0]
959 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 2 [para s[0].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse ()d to expected 1 but got 2
960 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 3 [para s[0].firstChild, 2]
961 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 4 [para s[0].firstChild, 8]
962 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 5 [para s[0].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse ()d to expected 9 but got 10
963 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 6 [para s[0].firstChild, 10]
964 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 7 [para s[0].firstChild, 65535]
965 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 8 [para s[1].firstChild, -1]
966 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 9 [para s[1].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
967 " but got Text node "Qrstuvwx"
968 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 10 [par as[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
969 " but got Text node "Qrstuvwx"
970 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 11 [par as[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
971 " but got Text node "Qrstuvwx"
972 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 12 [par as[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
973 " but got Text node "Qrstuvwx"
974 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 13 [par as[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
975 " but got Text node "Qrstuvwx"
976 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 14 [par as[1].firstChild, 10]
977 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 15 [par as[1].firstChild, 65535]
978 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 16 [det achedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
979 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 17 [det achedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
980 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 18 [det achedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
981 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 19 [det achedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse ()ing if the offset is negative or greater than the node's length function "func tion () {
982 selection.collapse(point[0], point[1]);
983 }" did not throw
984 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 20 [for eignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
985 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 21 [for eignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
986 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 22 [for eignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
987 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 23 [for eignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse( )ing if the offset is negative or greater than the node's length function "funct ion () {
988 selection.collapse(point[0], point[1]);
989 }" did not throw
990 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 24 [doc ument.documentElement, -1]
991 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 25 [doc ument.documentElement, 0] assert_equals: focusNode must equal the node we collap se()d to expected Element node <html><head><title>Selection.collapse() tests</ti tle>
992 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
993 "
994 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 26 [doc ument.documentElement, 1] assert_equals: focusNode must equal the node we collap se()d to expected Element node <html><head><title>Selection.collapse() tests</ti tle>
995 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
996 "
997 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 27 [doc ument.documentElement, 2] assert_equals: focusNode must equal the node we collap se()d to expected Element node <html><head><title>Selection.collapse() tests</ti tle>
998 <me... but got Text node "Qrstuvwx"
999 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 28 [doc ument.documentElement, 7]
1000 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 29 [doc ument.head, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <head><title>Selection.collapse() tests</title>
1001 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1002 "
1003 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 30 [doc ument.body, 3] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1004 </p><p id... but got Text node "Qrstuvwx"
1005 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 31 [for eignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
1006 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 32 [for eignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
1007 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 33 [for eignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
1008 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 34 [for eignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
1009 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 35 [par as[0], 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1010 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1011 "
1012 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 36 [par as[0], 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1013 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1014 "
1015 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 37 [par as[0], 2]
1016 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 38 [par as[1], 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <p id="b" style="display:none">Ijklmnop
1017 </p> but got Text node "Qrstuvwx"
1018 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 39 [par as[1], 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <p id="b" style="display:none">Ijklmnop
1019 </p> but got Text node "Qrstuvwx"
1020 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 40 [par as[1], 2]
1021 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 41 [det achedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1022 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 42 [det achedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1023 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 43 [tes tDiv, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1024 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1025 "
1026 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 44 [tes tDiv, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1027 </p><p id="b" s... but got Text node "Qrstuvwx"
1028 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 45 [doc ument, -1]
1029 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 46 [doc ument, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1030 "
1031 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 47 [doc ument, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1032 "
1033 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 48 [doc ument, 2] assert_equals: focusNode must equal the node we collapse()d to expecte d Document node with 2 children but got Text node "Qrstuvwx"
1034 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 49 [doc ument, 3]
1035 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 50 [com ment, -1]
1036 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 51 [com ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1037 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 52 [com ment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1038 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 53 [com ment, 96]
1039 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 54 [for eignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
1040 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 55 [for eignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
1041 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 56 [for eignComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
1042 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 57 [for eignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
1043 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 58 [for eignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1044 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 59 [xml Doc, -1]
1045 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 60 [xml Doc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
1046 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 61 [xml Doc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
1047 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 62 [xml Doc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offse t is negative or greater than the node's length function "function () {
1048 selection.collapse(point[0], point[1]);
1049 }" did not throw
1050 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 63 [xml Comment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
1051 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 64 [xml Comment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
1052 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 65 [pro cessingInstruction, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1053 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 66 [pro cessingInstruction, 5] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1054 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 67 [pro cessingInstruction, 9] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1055 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 68 [det achedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1056 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 69 [det achedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1057 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 70 [det achedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1058 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 71 [det achedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1059 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 72 [det achedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
1060 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 73 [det achedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
1061 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 74 [det achedProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1062 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 75 [det achedComment, 3] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
1063 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 76 [det achedComment, 5] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
1064 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 77 [det achedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1065 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 78 [det achedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1066 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 79 [det achedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
1067 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 80 [doc frag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
1068 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 81 [for eignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
1069 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 82 [xml Docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
1070 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 83 [doc type, 0]
1071 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 84 [doc type, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1072 selection.collapse(point[0], point[1]);
1073 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1074 PASS Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 85 [doc type, 1]
1075 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 86 [for eignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()i ng if the node is a DocumentType function "function () {
1076 selection.collapse(point[0], point[1]);
1077 }" did not throw
1078 FAIL Range 34 [foreignDoc.documentElement, 1, foreignDoc.body, 0], point 87 [xml Doctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing i f the node is a DocumentType function "function () {
1079 selection.collapse(point[0], point[1]);
1080 }" did not throw
1081 PASS Range 35 [document, 0, document, 1], point 0 [paras[0].firstChild, -1]
1082 PASS Range 35 [document, 0, document, 1], point 1 [paras[0].firstChild, 0]
1083 FAIL Range 35 [document, 0, document, 1], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1084 PASS Range 35 [document, 0, document, 1], point 3 [paras[0].firstChild, 2]
1085 PASS Range 35 [document, 0, document, 1], point 4 [paras[0].firstChild, 8]
1086 FAIL Range 35 [document, 0, document, 1], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1087 PASS Range 35 [document, 0, document, 1], point 6 [paras[0].firstChild, 10]
1088 PASS Range 35 [document, 0, document, 1], point 7 [paras[0].firstChild, 65535]
1089 PASS Range 35 [document, 0, document, 1], point 8 [paras[1].firstChild, -1]
1090 FAIL Range 35 [document, 0, document, 1], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1091 " but got Text node "Qrstuvwx"
1092 FAIL Range 35 [document, 0, document, 1], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1093 " but got Text node "Qrstuvwx"
1094 FAIL Range 35 [document, 0, document, 1], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1095 " but got Text node "Qrstuvwx"
1096 FAIL Range 35 [document, 0, document, 1], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1097 " but got Text node "Qrstuvwx"
1098 FAIL Range 35 [document, 0, document, 1], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1099 " but got Text node "Qrstuvwx"
1100 PASS Range 35 [document, 0, document, 1], point 14 [paras[1].firstChild, 10]
1101 PASS Range 35 [document, 0, document, 1], point 15 [paras[1].firstChild, 65535]
1102 FAIL Range 35 [document, 0, document, 1], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1103 "
1104 FAIL Range 35 [document, 0, document, 1], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1105 "
1106 FAIL Range 35 [document, 0, document, 1], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1107 "
1108 FAIL Range 35 [document, 0, document, 1], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is ne gative or greater than the node's length function "function () {
1109 selection.collapse(point[0], point[1]);
1110 }" did not throw
1111 FAIL Range 35 [document, 0, document, 1], point 20 [foreignPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1112 "
1113 FAIL Range 35 [document, 0, document, 1], point 21 [foreignPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1114 "
1115 FAIL Range 35 [document, 0, document, 1], point 22 [foreignPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1116 "
1117 FAIL Range 35 [document, 0, document, 1], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
1118 selection.collapse(point[0], point[1]);
1119 }" did not throw
1120 PASS Range 35 [document, 0, document, 1], point 24 [document.documentElement, -1 ]
1121 FAIL Range 35 [document, 0, document, 1], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1122 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1123 "
1124 FAIL Range 35 [document, 0, document, 1], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1125 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1126 "
1127 FAIL Range 35 [document, 0, document, 1], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1128 <me... but got Text node "Qrstuvwx"
1129 PASS Range 35 [document, 0, document, 1], point 28 [document.documentElement, 7]
1130 FAIL Range 35 [document, 0, document, 1], point 29 [document.head, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <head ><title>Selection.collapse() tests</title>
1131 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1132 "
1133 FAIL Range 35 [document, 0, document, 1], point 30 [document.body, 3] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <body ><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1134 </p><p id... but got Text node "Qrstuvwx"
1135 FAIL Range 35 [document, 0, document, 1], point 31 [foreignDoc.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Äb̈c̈d̈ëf̈g̈ḧ
1136 "
1137 FAIL Range 35 [document, 0, document, 1], point 32 [foreignDoc.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Äb̈c̈d̈ëf̈g̈ḧ
1138 "
1139 FAIL Range 35 [document, 0, document, 1], point 33 [foreignDoc.head, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <he ad><title></title></head> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1140 "
1141 FAIL Range 35 [document, 0, document, 1], point 34 [foreignDoc.body, 1] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <bo dy><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Äb ̈c̈d̈ëf̈g̈ḧ
1142 "
1143 FAIL Range 35 [document, 0, document, 1], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1144 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1145 "
1146 FAIL Range 35 [document, 0, document, 1], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1147 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1148 "
1149 PASS Range 35 [document, 0, document, 1], point 37 [paras[0], 2]
1150 FAIL Range 35 [document, 0, document, 1], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1151 </p> but got Text node "Qrstuvwx"
1152 FAIL Range 35 [document, 0, document, 1], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1153 </p> but got Text node "Qrstuvwx"
1154 PASS Range 35 [document, 0, document, 1], point 40 [paras[1], 2]
1155 FAIL Range 35 [document, 0, document, 1], point 41 [detachedPara1, 0] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1156 "
1157 FAIL Range 35 [document, 0, document, 1], point 42 [detachedPara1, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1158 "
1159 FAIL Range 35 [document, 0, document, 1], point 43 [testDiv, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1160 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1161 "
1162 FAIL Range 35 [document, 0, document, 1], point 44 [testDiv, 3] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1163 </p><p id="b" s... but got Text node "Qrstuvwx"
1164 PASS Range 35 [document, 0, document, 1], point 45 [document, -1]
1165 FAIL Range 35 [document, 0, document, 1], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1166 "
1167 FAIL Range 35 [document, 0, document, 1], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1168 "
1169 FAIL Range 35 [document, 0, document, 1], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Qrstuvwx"
1170 PASS Range 35 [document, 0, document, 1], point 49 [document, 3]
1171 PASS Range 35 [document, 0, document, 1], point 50 [comment, -1]
1172 FAIL Range 35 [document, 0, document, 1], point 51 [comment, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1173 FAIL Range 35 [document, 0, document, 1], point 52 [comment, 4] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1174 PASS Range 35 [document, 0, document, 1], point 53 [comment, 96]
1175 FAIL Range 35 [document, 0, document, 1], point 54 [foreignDoc, 0] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1176 "
1177 FAIL Range 35 [document, 0, document, 1], point 55 [foreignDoc, 1] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1178 "
1179 FAIL Range 35 [document, 0, document, 1], point 56 [foreignComment, 2] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- "Commenter" and "commentator" mean different things. I'v...--> but got Text nod e "Äb̈c̈d̈ëf̈g̈ḧ
1180 "
1181 FAIL Range 35 [document, 0, document, 1], point 57 [foreignTextNode, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "I adm it that I harbor doubts about whether we really need..." but got Text node "Äb̈ c̈d̈ëf̈g̈ḧ
1182 "
1183 FAIL Range 35 [document, 0, document, 1], point 58 [foreignTextNode, 36] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "I ad mit that I harbor doubts about whether we really need..." but got Text node "Äb ̈c̈d̈ëf̈g̈ḧ
1184 "
1185 PASS Range 35 [document, 0, document, 1], point 59 [xmlDoc, -1]
1186 FAIL Range 35 [document, 0, document, 1], point 60 [xmlDoc, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1187 "
1188 FAIL Range 35 [document, 0, document, 1], point 61 [xmlDoc, 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1189 "
1190 FAIL Range 35 [document, 0, document, 1], point 62 [xmlDoc, 5] assert_throws: Mu st throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
1191 selection.collapse(point[0], point[1]);
1192 }" did not throw
1193 FAIL Range 35 [document, 0, document, 1], point 63 [xmlComment, 0] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "A ̈b̈c̈d̈ëf̈g̈ḧ
1194 "
1195 FAIL Range 35 [document, 0, document, 1], point 64 [xmlComment, 4] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "A ̈b̈c̈d̈ëf̈g̈ḧ
1196 "
1197 FAIL Range 35 [document, 0, document, 1], point 65 [processingInstruction, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1198 "
1199 FAIL Range 35 [document, 0, document, 1], point 66 [processingInstruction, 5] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1200 "
1201 FAIL Range 35 [document, 0, document, 1], point 67 [processingInstruction, 9] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1202 "
1203 FAIL Range 35 [document, 0, document, 1], point 68 [detachedTextNode, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1204 "
1205 FAIL Range 35 [document, 0, document, 1], point 69 [detachedTextNode, 8] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1206 "
1207 FAIL Range 35 [document, 0, document, 1], point 70 [detachedForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1208 "
1209 FAIL Range 35 [document, 0, document, 1], point 71 [detachedForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1210 "
1211 FAIL Range 35 [document, 0, document, 1], point 72 [detachedXmlTextNode, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1212 "
1213 FAIL Range 35 [document, 0, document, 1], point 73 [detachedXmlTextNode, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1214 "
1215 FAIL Range 35 [document, 0, document, 1], point 74 [detachedProcessingInstructio n, 12] assert_equals: focusNode must equal the node we collapse()d to expected P rocessingInstruction node with target "whippoorwill" and data "chirp chirp chirp " but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1216 "
1217 FAIL Range 35 [document, 0, document, 1], point 75 [detachedComment, 3] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1218 "
1219 FAIL Range 35 [document, 0, document, 1], point 76 [detachedComment, 5] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1220 "
1221 FAIL Range 35 [document, 0, document, 1], point 77 [detachedForeignComment, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1222 "
1223 FAIL Range 35 [document, 0, document, 1], point 78 [detachedForeignComment, 4] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1224 "
1225 FAIL Range 35 [document, 0, document, 1], point 79 [detachedXmlComment, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Comment node <!--בן חיים אליעזר--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1226 "
1227 FAIL Range 35 [document, 0, document, 1], point 80 [docfrag, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected DocumentFragment node wi th 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1228 "
1229 FAIL Range 35 [document, 0, document, 1], point 81 [foreignDocfrag, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1230 "
1231 FAIL Range 35 [document, 0, document, 1], point 82 [xmlDocfrag, 0] assert_equals : focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1232 "
1233 PASS Range 35 [document, 0, document, 1], point 83 [doctype, 0]
1234 FAIL Range 35 [document, 0, document, 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
1235 selection.collapse(point[0], point[1]);
1236 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1237 PASS Range 35 [document, 0, document, 1], point 85 [doctype, 1]
1238 FAIL Range 35 [document, 0, document, 1], point 86 [foreignDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
1239 selection.collapse(point[0], point[1]);
1240 }" did not throw
1241 FAIL Range 35 [document, 0, document, 1], point 87 [xmlDoctype, 0] assert_throws : Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentT ype function "function () {
1242 selection.collapse(point[0], point[1]);
1243 }" did not throw
1244 PASS Range 36 [document, 0, document, 2], point 0 [paras[0].firstChild, -1]
1245 PASS Range 36 [document, 0, document, 2], point 1 [paras[0].firstChild, 0]
1246 FAIL Range 36 [document, 0, document, 2], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1247 PASS Range 36 [document, 0, document, 2], point 3 [paras[0].firstChild, 2]
1248 PASS Range 36 [document, 0, document, 2], point 4 [paras[0].firstChild, 8]
1249 FAIL Range 36 [document, 0, document, 2], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1250 PASS Range 36 [document, 0, document, 2], point 6 [paras[0].firstChild, 10]
1251 PASS Range 36 [document, 0, document, 2], point 7 [paras[0].firstChild, 65535]
1252 PASS Range 36 [document, 0, document, 2], point 8 [paras[1].firstChild, -1]
1253 FAIL Range 36 [document, 0, document, 2], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1254 " but got Text node "Qrstuvwx"
1255 FAIL Range 36 [document, 0, document, 2], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1256 " but got Text node "Qrstuvwx"
1257 FAIL Range 36 [document, 0, document, 2], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1258 " but got Text node "Qrstuvwx"
1259 FAIL Range 36 [document, 0, document, 2], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1260 " but got Text node "Qrstuvwx"
1261 FAIL Range 36 [document, 0, document, 2], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1262 " but got Text node "Qrstuvwx"
1263 PASS Range 36 [document, 0, document, 2], point 14 [paras[1].firstChild, 10]
1264 PASS Range 36 [document, 0, document, 2], point 15 [paras[1].firstChild, 65535]
1265 FAIL Range 36 [document, 0, document, 2], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1266 FAIL Range 36 [document, 0, document, 2], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1267 FAIL Range 36 [document, 0, document, 2], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1268 FAIL Range 36 [document, 0, document, 2], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is ne gative or greater than the node's length function "function () {
1269 selection.collapse(point[0], point[1]);
1270 }" did not throw
1271 FAIL Range 36 [document, 0, document, 2], point 20 [foreignPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1272 FAIL Range 36 [document, 0, document, 2], point 21 [foreignPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1273 FAIL Range 36 [document, 0, document, 2], point 22 [foreignPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1274 FAIL Range 36 [document, 0, document, 2], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
1275 selection.collapse(point[0], point[1]);
1276 }" did not throw
1277 PASS Range 36 [document, 0, document, 2], point 24 [document.documentElement, -1 ]
1278 FAIL Range 36 [document, 0, document, 2], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1279 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1280 "
1281 FAIL Range 36 [document, 0, document, 2], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1282 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1283 "
1284 FAIL Range 36 [document, 0, document, 2], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1285 <me... but got Text node "Qrstuvwx"
1286 PASS Range 36 [document, 0, document, 2], point 28 [document.documentElement, 7]
1287 FAIL Range 36 [document, 0, document, 2], point 29 [document.head, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <head ><title>Selection.collapse() tests</title>
1288 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1289 "
1290 FAIL Range 36 [document, 0, document, 2], point 30 [document.body, 3] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <body ><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1291 </p><p id... but got Text node "Qrstuvwx"
1292 FAIL Range 36 [document, 0, document, 2], point 31 [foreignDoc.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Qrstuvwx"
1293 FAIL Range 36 [document, 0, document, 2], point 32 [foreignDoc.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Qrstuvwx"
1294 FAIL Range 36 [document, 0, document, 2], point 33 [foreignDoc.head, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <he ad><title></title></head> but got Text node "Qrstuvwx"
1295 FAIL Range 36 [document, 0, document, 2], point 34 [foreignDoc.body, 1] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <bo dy><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrs tuvwx"
1296 FAIL Range 36 [document, 0, document, 2], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1297 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1298 "
1299 FAIL Range 36 [document, 0, document, 2], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1300 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1301 "
1302 PASS Range 36 [document, 0, document, 2], point 37 [paras[0], 2]
1303 FAIL Range 36 [document, 0, document, 2], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1304 </p> but got Text node "Qrstuvwx"
1305 FAIL Range 36 [document, 0, document, 2], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1306 </p> but got Text node "Qrstuvwx"
1307 PASS Range 36 [document, 0, document, 2], point 40 [paras[1], 2]
1308 FAIL Range 36 [document, 0, document, 2], point 41 [detachedPara1, 0] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Qrstuvwx"
1309 FAIL Range 36 [document, 0, document, 2], point 42 [detachedPara1, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Qrstuvwx"
1310 FAIL Range 36 [document, 0, document, 2], point 43 [testDiv, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1311 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1312 "
1313 FAIL Range 36 [document, 0, document, 2], point 44 [testDiv, 3] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1314 </p><p id="b" s... but got Text node "Qrstuvwx"
1315 PASS Range 36 [document, 0, document, 2], point 45 [document, -1]
1316 FAIL Range 36 [document, 0, document, 2], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1317 "
1318 FAIL Range 36 [document, 0, document, 2], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1319 "
1320 FAIL Range 36 [document, 0, document, 2], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Qrstuvwx"
1321 PASS Range 36 [document, 0, document, 2], point 49 [document, 3]
1322 PASS Range 36 [document, 0, document, 2], point 50 [comment, -1]
1323 FAIL Range 36 [document, 0, document, 2], point 51 [comment, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1324 FAIL Range 36 [document, 0, document, 2], point 52 [comment, 4] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1325 PASS Range 36 [document, 0, document, 2], point 53 [comment, 96]
1326 FAIL Range 36 [document, 0, document, 2], point 54 [foreignDoc, 0] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Qrstuvwx"
1327 FAIL Range 36 [document, 0, document, 2], point 55 [foreignDoc, 1] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Qrstuvwx"
1328 FAIL Range 36 [document, 0, document, 2], point 56 [foreignComment, 2] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- "Commenter" and "commentator" mean different things. I'v...--> but got Text nod e "Qrstuvwx"
1329 FAIL Range 36 [document, 0, document, 2], point 57 [foreignTextNode, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "I adm it that I harbor doubts about whether we really need..." but got Text node "Qrst uvwx"
1330 FAIL Range 36 [document, 0, document, 2], point 58 [foreignTextNode, 36] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "I ad mit that I harbor doubts about whether we really need..." but got Text node "Qrs tuvwx"
1331 PASS Range 36 [document, 0, document, 2], point 59 [xmlDoc, -1]
1332 FAIL Range 36 [document, 0, document, 2], point 60 [xmlDoc, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Qrstuvwx"
1333 FAIL Range 36 [document, 0, document, 2], point 61 [xmlDoc, 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Qrstuvwx"
1334 FAIL Range 36 [document, 0, document, 2], point 62 [xmlDoc, 5] assert_throws: Mu st throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
1335 selection.collapse(point[0], point[1]);
1336 }" did not throw
1337 FAIL Range 36 [document, 0, document, 2], point 63 [xmlComment, 0] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "Q rstuvwx"
1338 FAIL Range 36 [document, 0, document, 2], point 64 [xmlComment, 4] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "Q rstuvwx"
1339 FAIL Range 36 [document, 0, document, 2], point 65 [processingInstruction, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1340 FAIL Range 36 [document, 0, document, 2], point 66 [processingInstruction, 5] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1341 FAIL Range 36 [document, 0, document, 2], point 67 [processingInstruction, 9] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1342 FAIL Range 36 [document, 0, document, 2], point 68 [detachedTextNode, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Qrstuvwx"
1343 FAIL Range 36 [document, 0, document, 2], point 69 [detachedTextNode, 8] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Qrstuvwx"
1344 FAIL Range 36 [document, 0, document, 2], point 70 [detachedForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Qrstuvwx"
1345 FAIL Range 36 [document, 0, document, 2], point 71 [detachedForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Qrstuvwx"
1346 FAIL Range 36 [document, 0, document, 2], point 72 [detachedXmlTextNode, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Qrstuvwx"
1347 FAIL Range 36 [document, 0, document, 2], point 73 [detachedXmlTextNode, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Qrstuvwx"
1348 FAIL Range 36 [document, 0, document, 2], point 74 [detachedProcessingInstructio n, 12] assert_equals: focusNode must equal the node we collapse()d to expected P rocessingInstruction node with target "whippoorwill" and data "chirp chirp chirp " but got Text node "Qrstuvwx"
1349 FAIL Range 36 [document, 0, document, 2], point 75 [detachedComment, 3] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Qrstuvwx"
1350 FAIL Range 36 [document, 0, document, 2], point 76 [detachedComment, 5] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Qrstuvwx"
1351 FAIL Range 36 [document, 0, document, 2], point 77 [detachedForeignComment, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Qrstuvwx"
1352 FAIL Range 36 [document, 0, document, 2], point 78 [detachedForeignComment, 4] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Qrstuvwx"
1353 FAIL Range 36 [document, 0, document, 2], point 79 [detachedXmlComment, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Comment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
1354 FAIL Range 36 [document, 0, document, 2], point 80 [docfrag, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected DocumentFragment node wi th 0 children but got Text node "Qrstuvwx"
1355 FAIL Range 36 [document, 0, document, 2], point 81 [foreignDocfrag, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1356 FAIL Range 36 [document, 0, document, 2], point 82 [xmlDocfrag, 0] assert_equals : focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1357 PASS Range 36 [document, 0, document, 2], point 83 [doctype, 0]
1358 FAIL Range 36 [document, 0, document, 2], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
1359 selection.collapse(point[0], point[1]);
1360 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1361 PASS Range 36 [document, 0, document, 2], point 85 [doctype, 1]
1362 FAIL Range 36 [document, 0, document, 2], point 86 [foreignDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
1363 selection.collapse(point[0], point[1]);
1364 }" did not throw
1365 FAIL Range 36 [document, 0, document, 2], point 87 [xmlDoctype, 0] assert_throws : Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentT ype function "function () {
1366 selection.collapse(point[0], point[1]);
1367 }" did not throw
1368 PASS Range 37 [document, 1, document, 2], point 0 [paras[0].firstChild, -1]
1369 PASS Range 37 [document, 1, document, 2], point 1 [paras[0].firstChild, 0]
1370 FAIL Range 37 [document, 1, document, 2], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1371 PASS Range 37 [document, 1, document, 2], point 3 [paras[0].firstChild, 2]
1372 PASS Range 37 [document, 1, document, 2], point 4 [paras[0].firstChild, 8]
1373 FAIL Range 37 [document, 1, document, 2], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1374 PASS Range 37 [document, 1, document, 2], point 6 [paras[0].firstChild, 10]
1375 PASS Range 37 [document, 1, document, 2], point 7 [paras[0].firstChild, 65535]
1376 PASS Range 37 [document, 1, document, 2], point 8 [paras[1].firstChild, -1]
1377 FAIL Range 37 [document, 1, document, 2], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1378 " but got Text node "Qrstuvwx"
1379 FAIL Range 37 [document, 1, document, 2], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1380 " but got Text node "Qrstuvwx"
1381 FAIL Range 37 [document, 1, document, 2], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1382 " but got Text node "Qrstuvwx"
1383 FAIL Range 37 [document, 1, document, 2], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1384 " but got Text node "Qrstuvwx"
1385 FAIL Range 37 [document, 1, document, 2], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
1386 " but got Text node "Qrstuvwx"
1387 PASS Range 37 [document, 1, document, 2], point 14 [paras[1].firstChild, 10]
1388 PASS Range 37 [document, 1, document, 2], point 15 [paras[1].firstChild, 65535]
1389 FAIL Range 37 [document, 1, document, 2], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1390 FAIL Range 37 [document, 1, document, 2], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1391 FAIL Range 37 [document, 1, document, 2], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text no de "Opqrstuv" but got Text node "Qrstuvwx"
1392 FAIL Range 37 [document, 1, document, 2], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is ne gative or greater than the node's length function "function () {
1393 selection.collapse(point[0], point[1]);
1394 }" did not throw
1395 FAIL Range 37 [document, 1, document, 2], point 20 [foreignPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1396 FAIL Range 37 [document, 1, document, 2], point 21 [foreignPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1397 FAIL Range 37 [document, 1, document, 2], point 22 [foreignPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Efghijkl" but got Text node "Qrstuvwx"
1398 FAIL Range 37 [document, 1, document, 2], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
1399 selection.collapse(point[0], point[1]);
1400 }" did not throw
1401 PASS Range 37 [document, 1, document, 2], point 24 [document.documentElement, -1 ]
1402 FAIL Range 37 [document, 1, document, 2], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1403 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1404 "
1405 FAIL Range 37 [document, 1, document, 2], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1406 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1407 "
1408 FAIL Range 37 [document, 1, document, 2], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1409 <me... but got Text node "Qrstuvwx"
1410 PASS Range 37 [document, 1, document, 2], point 28 [document.documentElement, 7]
1411 FAIL Range 37 [document, 1, document, 2], point 29 [document.head, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <head ><title>Selection.collapse() tests</title>
1412 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1413 "
1414 FAIL Range 37 [document, 1, document, 2], point 30 [document.body, 3] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <body ><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1415 </p><p id... but got Text node "Qrstuvwx"
1416 FAIL Range 37 [document, 1, document, 2], point 31 [foreignDoc.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Qrstuvwx"
1417 FAIL Range 37 [document, 1, document, 2], point 32 [foreignDoc.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Eleme nt node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Tex t node "Qrstuvwx"
1418 FAIL Range 37 [document, 1, document, 2], point 33 [foreignDoc.head, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <he ad><title></title></head> but got Text node "Qrstuvwx"
1419 FAIL Range 37 [document, 1, document, 2], point 34 [foreignDoc.body, 1] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <bo dy><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrs tuvwx"
1420 FAIL Range 37 [document, 1, document, 2], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1421 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1422 "
1423 FAIL Range 37 [document, 1, document, 2], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
1424 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1425 "
1426 PASS Range 37 [document, 1, document, 2], point 37 [paras[0], 2]
1427 FAIL Range 37 [document, 1, document, 2], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1428 </p> but got Text node "Qrstuvwx"
1429 FAIL Range 37 [document, 1, document, 2], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1430 </p> but got Text node "Qrstuvwx"
1431 PASS Range 37 [document, 1, document, 2], point 40 [paras[1], 2]
1432 FAIL Range 37 [document, 1, document, 2], point 41 [detachedPara1, 0] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Qrstuvwx"
1433 FAIL Range 37 [document, 1, document, 2], point 42 [detachedPara1, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <p>Op qrstuv</p> but got Text node "Qrstuvwx"
1434 FAIL Range 37 [document, 1, document, 2], point 43 [testDiv, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1435 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1436 "
1437 FAIL Range 37 [document, 1, document, 2], point 44 [testDiv, 3] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1438 </p><p id="b" s... but got Text node "Qrstuvwx"
1439 PASS Range 37 [document, 1, document, 2], point 45 [document, -1]
1440 FAIL Range 37 [document, 1, document, 2], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1441 "
1442 FAIL Range 37 [document, 1, document, 2], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1443 "
1444 FAIL Range 37 [document, 1, document, 2], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Qrstuvwx"
1445 PASS Range 37 [document, 1, document, 2], point 49 [document, 3]
1446 PASS Range 37 [document, 1, document, 2], point 50 [comment, -1]
1447 FAIL Range 37 [document, 1, document, 2], point 51 [comment, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1448 FAIL Range 37 [document, 1, document, 2], point 52 [comment, 4] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
1449 PASS Range 37 [document, 1, document, 2], point 53 [comment, 96]
1450 FAIL Range 37 [document, 1, document, 2], point 54 [foreignDoc, 0] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Qrstuvwx"
1451 FAIL Range 37 [document, 1, document, 2], point 55 [foreignDoc, 1] assert_equals : focusNode must equal the node we collapse()d to expected Document node with 3 children but got Text node "Qrstuvwx"
1452 FAIL Range 37 [document, 1, document, 2], point 56 [foreignComment, 2] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- "Commenter" and "commentator" mean different things. I'v...--> but got Text nod e "Qrstuvwx"
1453 FAIL Range 37 [document, 1, document, 2], point 57 [foreignTextNode, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "I adm it that I harbor doubts about whether we really need..." but got Text node "Qrst uvwx"
1454 FAIL Range 37 [document, 1, document, 2], point 58 [foreignTextNode, 36] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "I ad mit that I harbor doubts about whether we really need..." but got Text node "Qrs tuvwx"
1455 PASS Range 37 [document, 1, document, 2], point 59 [xmlDoc, -1]
1456 FAIL Range 37 [document, 1, document, 2], point 60 [xmlDoc, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Qrstuvwx"
1457 FAIL Range 37 [document, 1, document, 2], point 61 [xmlDoc, 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 4 chil dren but got Text node "Qrstuvwx"
1458 FAIL Range 37 [document, 1, document, 2], point 62 [xmlDoc, 5] assert_throws: Mu st throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
1459 selection.collapse(point[0], point[1]);
1460 }" did not throw
1461 FAIL Range 37 [document, 1, document, 2], point 63 [xmlComment, 0] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "Q rstuvwx"
1462 FAIL Range 37 [document, 1, document, 2], point 64 [xmlComment, 4] assert_equals : focusNode must equal the node we collapse()d to expected Comment node <!--I ma liciously created a comment that will break incautiou...--> but got Text node "Q rstuvwx"
1463 FAIL Range 37 [document, 1, document, 2], point 65 [processingInstruction, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1464 FAIL Range 37 [document, 1, document, 2], point 66 [processingInstruction, 5] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1465 FAIL Range 37 [document, 1, document, 2], point 67 [processingInstruction, 9] as sert_equals: focusNode must equal the node we collapse()d to expected Processing Instruction node with target "somePI" and data "Did you know that \":syn sync fr omstart\" is very useful wh..." but got Text node "Qrstuvwx"
1466 FAIL Range 37 [document, 1, document, 2], point 68 [detachedTextNode, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Qrstuvwx"
1467 FAIL Range 37 [document, 1, document, 2], point 69 [detachedTextNode, 8] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Uvwx yzab" but got Text node "Qrstuvwx"
1468 FAIL Range 37 [document, 1, document, 2], point 70 [detachedForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Qrstuvwx"
1469 FAIL Range 37 [document, 1, document, 2], point 71 [detachedForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Cdefghij" but got Text node "Qrstuvwx"
1470 FAIL Range 37 [document, 1, document, 2], point 72 [detachedXmlTextNode, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Qrstuvwx"
1471 FAIL Range 37 [document, 1, document, 2], point 73 [detachedXmlTextNode, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "K lmnopqr" but got Text node "Qrstuvwx"
1472 FAIL Range 37 [document, 1, document, 2], point 74 [detachedProcessingInstructio n, 12] assert_equals: focusNode must equal the node we collapse()d to expected P rocessingInstruction node with target "whippoorwill" and data "chirp chirp chirp " but got Text node "Qrstuvwx"
1473 FAIL Range 37 [document, 1, document, 2], point 75 [detachedComment, 3] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Qrstuvwx"
1474 FAIL Range 37 [document, 1, document, 2], point 76 [detachedComment, 5] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Stuvwxyz--> but got Text node "Qrstuvwx"
1475 FAIL Range 37 [document, 1, document, 2], point 77 [detachedForeignComment, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Qrstuvwx"
1476 FAIL Range 37 [document, 1, document, 2], point 78 [detachedForeignComment, 4] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--אריה יהודה--> but got Text node "Qrstuvwx"
1477 FAIL Range 37 [document, 1, document, 2], point 79 [detachedXmlComment, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Comment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
1478 FAIL Range 37 [document, 1, document, 2], point 80 [docfrag, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected DocumentFragment node wi th 0 children but got Text node "Qrstuvwx"
1479 FAIL Range 37 [document, 1, document, 2], point 81 [foreignDocfrag, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1480 FAIL Range 37 [document, 1, document, 2], point 82 [xmlDocfrag, 0] assert_equals : focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1481 PASS Range 37 [document, 1, document, 2], point 83 [doctype, 0]
1482 FAIL Range 37 [document, 1, document, 2], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
1483 selection.collapse(point[0], point[1]);
1484 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1485 PASS Range 37 [document, 1, document, 2], point 85 [doctype, 1]
1486 FAIL Range 37 [document, 1, document, 2], point 86 [foreignDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
1487 selection.collapse(point[0], point[1]);
1488 }" did not throw
1489 FAIL Range 37 [document, 1, document, 2], point 87 [xmlDoctype, 0] assert_throws : Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentT ype function "function () {
1490 selection.collapse(point[0], point[1]);
1491 }" did not throw
1492 PASS Range 38 [testDiv, 0, comment, 5], point 0 [paras[0].firstChild, -1]
1493 PASS Range 38 [testDiv, 0, comment, 5], point 1 [paras[0].firstChild, 0]
1494 FAIL Range 38 [testDiv, 0, comment, 5], point 2 [paras[0].firstChild, 1] assert_ equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1495 PASS Range 38 [testDiv, 0, comment, 5], point 3 [paras[0].firstChild, 2]
1496 PASS Range 38 [testDiv, 0, comment, 5], point 4 [paras[0].firstChild, 8]
1497 FAIL Range 38 [testDiv, 0, comment, 5], point 5 [paras[0].firstChild, 9] assert_ equals: focusOffset must equal the offset we collapse()d to expected 9 but got 1 0
1498 PASS Range 38 [testDiv, 0, comment, 5], point 6 [paras[0].firstChild, 10]
1499 PASS Range 38 [testDiv, 0, comment, 5], point 7 [paras[0].firstChild, 65535]
1500 PASS Range 38 [testDiv, 0, comment, 5], point 8 [paras[1].firstChild, -1]
1501 FAIL Range 38 [testDiv, 0, comment, 5], point 9 [paras[1].firstChild, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Ijkl mnop
1502 " but got Text node "Qrstuvwx"
1503 FAIL Range 38 [testDiv, 0, comment, 5], point 10 [paras[1].firstChild, 1] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
1504 " but got Text node "Qrstuvwx"
1505 FAIL Range 38 [testDiv, 0, comment, 5], point 11 [paras[1].firstChild, 2] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
1506 " but got Text node "Qrstuvwx"
1507 FAIL Range 38 [testDiv, 0, comment, 5], point 12 [paras[1].firstChild, 8] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
1508 " but got Text node "Qrstuvwx"
1509 FAIL Range 38 [testDiv, 0, comment, 5], point 13 [paras[1].firstChild, 9] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
1510 " but got Text node "Qrstuvwx"
1511 PASS Range 38 [testDiv, 0, comment, 5], point 14 [paras[1].firstChild, 10]
1512 PASS Range 38 [testDiv, 0, comment, 5], point 15 [paras[1].firstChild, 65535]
1513 FAIL Range 38 [testDiv, 0, comment, 5], point 16 [detachedPara1.firstChild, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
1514 FAIL Range 38 [testDiv, 0, comment, 5], point 17 [detachedPara1.firstChild, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
1515 FAIL Range 38 [testDiv, 0, comment, 5], point 18 [detachedPara1.firstChild, 8] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
1516 FAIL Range 38 [testDiv, 0, comment, 5], point 19 [detachedPara1.firstChild, 9] a ssert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is nega tive or greater than the node's length function "function () {
1517 selection.collapse(point[0], point[1]);
1518 }" did not throw
1519 FAIL Range 38 [testDiv, 0, comment, 5], point 20 [foreignPara1.firstChild, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1520 FAIL Range 38 [testDiv, 0, comment, 5], point 21 [foreignPara1.firstChild, 1] as sert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1521 FAIL Range 38 [testDiv, 0, comment, 5], point 22 [foreignPara1.firstChild, 8] as sert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1522 FAIL Range 38 [testDiv, 0, comment, 5], point 23 [foreignPara1.firstChild, 9] as sert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negat ive or greater than the node's length function "function () {
1523 selection.collapse(point[0], point[1]);
1524 }" did not throw
1525 PASS Range 38 [testDiv, 0, comment, 5], point 24 [document.documentElement, -1]
1526 FAIL Range 38 [testDiv, 0, comment, 5], point 25 [document.documentElement, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
1527 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1528 "
1529 FAIL Range 38 [testDiv, 0, comment, 5], point 26 [document.documentElement, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
1530 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1531 "
1532 FAIL Range 38 [testDiv, 0, comment, 5], point 27 [document.documentElement, 2] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
1533 <me... but got Text node "Qrstuvwx"
1534 PASS Range 38 [testDiv, 0, comment, 5], point 28 [document.documentElement, 7]
1535 FAIL Range 38 [testDiv, 0, comment, 5], point 29 [document.head, 1] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <head>< title>Selection.collapse() tests</title>
1536 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1537 "
1538 FAIL Range 38 [testDiv, 0, comment, 5], point 30 [document.body, 3] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <body>< div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1539 </p><p id... but got Text node "Qrstuvwx"
1540 FAIL Range 38 [testDiv, 0, comment, 5], point 31 [foreignDoc.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
1541 FAIL Range 38 [testDiv, 0, comment, 5], point 32 [foreignDoc.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
1542 FAIL Range 38 [testDiv, 0, comment, 5], point 33 [foreignDoc.head, 0] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <head ><title></title></head> but got Text node "Qrstuvwx"
1543 FAIL Range 38 [testDiv, 0, comment, 5], point 34 [foreignDoc.body, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <body ><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrstu vwx"
1544 FAIL Range 38 [testDiv, 0, comment, 5], point 35 [paras[0], 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="a">Ä b̈c̈d̈ëf̈g̈ḧ
1545 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1546 "
1547 FAIL Range 38 [testDiv, 0, comment, 5], point 36 [paras[0], 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="a">Ä b̈c̈d̈ëf̈g̈ḧ
1548 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1549 "
1550 PASS Range 38 [testDiv, 0, comment, 5], point 37 [paras[0], 2]
1551 FAIL Range 38 [testDiv, 0, comment, 5], point 38 [paras[1], 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="b" st yle="display:none">Ijklmnop
1552 </p> but got Text node "Qrstuvwx"
1553 FAIL Range 38 [testDiv, 0, comment, 5], point 39 [paras[1], 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="b" st yle="display:none">Ijklmnop
1554 </p> but got Text node "Qrstuvwx"
1555 PASS Range 38 [testDiv, 0, comment, 5], point 40 [paras[1], 2]
1556 FAIL Range 38 [testDiv, 0, comment, 5], point 41 [detachedPara1, 0] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <p>Opqr stuv</p> but got Text node "Qrstuvwx"
1557 FAIL Range 38 [testDiv, 0, comment, 5], point 42 [detachedPara1, 1] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <p>Opqr stuv</p> but got Text node "Qrstuvwx"
1558 FAIL Range 38 [testDiv, 0, comment, 5], point 43 [testDiv, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Element node <div id="test "><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1559 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1560 "
1561 FAIL Range 38 [testDiv, 0, comment, 5], point 44 [testDiv, 3] assert_equals: foc usNode must equal the node we collapse()d to expected Element node <div id="test "><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1562 </p><p id="b" s... but got Text node "Qrstuvwx"
1563 PASS Range 38 [testDiv, 0, comment, 5], point 45 [document, -1]
1564 FAIL Range 38 [testDiv, 0, comment, 5], point 46 [document, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1565 "
1566 FAIL Range 38 [testDiv, 0, comment, 5], point 47 [document, 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1567 "
1568 FAIL Range 38 [testDiv, 0, comment, 5], point 48 [document, 2] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Qrstuvwx"
1569 PASS Range 38 [testDiv, 0, comment, 5], point 49 [document, 3]
1570 PASS Range 38 [testDiv, 0, comment, 5], point 50 [comment, -1]
1571 FAIL Range 38 [testDiv, 0, comment, 5], point 51 [comment, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1572 FAIL Range 38 [testDiv, 0, comment, 5], point 52 [comment, 4] assert_equals: foc usNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1573 PASS Range 38 [testDiv, 0, comment, 5], point 53 [comment, 96]
1574 FAIL Range 38 [testDiv, 0, comment, 5], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 ch ildren but got Text node "Qrstuvwx"
1575 FAIL Range 38 [testDiv, 0, comment, 5], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 ch ildren but got Text node "Qrstuvwx"
1576 FAIL Range 38 [testDiv, 0, comment, 5], point 56 [foreignComment, 2] assert_equa ls: focusNode must equal the node we collapse()d to expected Comment node <!--"C ommenter" and "commentator" mean different things. I'v...--> but got Text node "Qrstuvwx"
1577 FAIL Range 38 [testDiv, 0, comment, 5], point 57 [foreignTextNode, 0] assert_equ als: focusNode must equal the node we collapse()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuv wx"
1578 FAIL Range 38 [testDiv, 0, comment, 5], point 58 [foreignTextNode, 36] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "I admi t that I harbor doubts about whether we really need..." but got Text node "Qrstu vwx"
1579 PASS Range 38 [testDiv, 0, comment, 5], point 59 [xmlDoc, -1]
1580 FAIL Range 38 [testDiv, 0, comment, 5], point 60 [xmlDoc, 0] assert_equals: focu sNode must equal the node we collapse()d to expected Document node with 4 childr en but got Text node "Qrstuvwx"
1581 FAIL Range 38 [testDiv, 0, comment, 5], point 61 [xmlDoc, 1] assert_equals: focu sNode must equal the node we collapse()d to expected Document node with 4 childr en but got Text node "Qrstuvwx"
1582 FAIL Range 38 [testDiv, 0, comment, 5], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater th an the node's length function "function () {
1583 selection.collapse(point[0], point[1]);
1584 }" did not throw
1585 FAIL Range 38 [testDiv, 0, comment, 5], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mali ciously created a comment that will break incautiou...--> but got Text node "Qrs tuvwx"
1586 FAIL Range 38 [testDiv, 0, comment, 5], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mali ciously created a comment that will break incautiou...--> but got Text node "Qrs tuvwx"
1587 FAIL Range 38 [testDiv, 0, comment, 5], point 65 [processingInstruction, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected ProcessingIn struction node with target "somePI" and data "Did you know that \":syn sync from start\" is very useful wh..." but got Text node "Qrstuvwx"
1588 FAIL Range 38 [testDiv, 0, comment, 5], point 66 [processingInstruction, 5] asse rt_equals: focusNode must equal the node we collapse()d to expected ProcessingIn struction node with target "somePI" and data "Did you know that \":syn sync from start\" is very useful wh..." but got Text node "Qrstuvwx"
1589 FAIL Range 38 [testDiv, 0, comment, 5], point 67 [processingInstruction, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected ProcessingIn struction node with target "somePI" and data "Did you know that \":syn sync from start\" is very useful wh..." but got Text node "Qrstuvwx"
1590 FAIL Range 38 [testDiv, 0, comment, 5], point 68 [detachedTextNode, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyz ab" but got Text node "Qrstuvwx"
1591 FAIL Range 38 [testDiv, 0, comment, 5], point 69 [detachedTextNode, 8] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyz ab" but got Text node "Qrstuvwx"
1592 FAIL Range 38 [testDiv, 0, comment, 5], point 70 [detachedForeignTextNode, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1593 FAIL Range 38 [testDiv, 0, comment, 5], point 71 [detachedForeignTextNode, 8] as sert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1594 FAIL Range 38 [testDiv, 0, comment, 5], point 72 [detachedXmlTextNode, 0] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Klm nopqr" but got Text node "Qrstuvwx"
1595 FAIL Range 38 [testDiv, 0, comment, 5], point 73 [detachedXmlTextNode, 8] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Klm nopqr" but got Text node "Qrstuvwx"
1596 FAIL Range 38 [testDiv, 0, comment, 5], point 74 [detachedProcessingInstruction, 12] assert_equals: focusNode must equal the node we collapse()d to expected Pro cessingInstruction node with target "whippoorwill" and data "chirp chirp chirp" but got Text node "Qrstuvwx"
1597 FAIL Range 38 [testDiv, 0, comment, 5], point 75 [detachedComment, 3] assert_equ als: focusNode must equal the node we collapse()d to expected Comment node <!--S tuvwxyz--> but got Text node "Qrstuvwx"
1598 FAIL Range 38 [testDiv, 0, comment, 5], point 76 [detachedComment, 5] assert_equ als: focusNode must equal the node we collapse()d to expected Comment node <!--S tuvwxyz--> but got Text node "Qrstuvwx"
1599 FAIL Range 38 [testDiv, 0, comment, 5], point 77 [detachedForeignComment, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--אריה יהודה--> but got Text node "Qrstuvwx"
1600 FAIL Range 38 [testDiv, 0, comment, 5], point 78 [detachedForeignComment, 4] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--אריה יהודה--> but got Text node "Qrstuvwx"
1601 FAIL Range 38 [testDiv, 0, comment, 5], point 79 [detachedXmlComment, 2] assert_ equals: focusNode must equal the node we collapse()d to expected Comment node <! --בן חיים אליעזר--> but got Text node "Qrstuvwx"
1602 FAIL Range 38 [testDiv, 0, comment, 5], point 80 [docfrag, 0] assert_equals: foc usNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1603 FAIL Range 38 [testDiv, 0, comment, 5], point 81 [foreignDocfrag, 0] assert_equa ls: focusNode must equal the node we collapse()d to expected DocumentFragment no de with 0 children but got Text node "Qrstuvwx"
1604 FAIL Range 38 [testDiv, 0, comment, 5], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node w ith 0 children but got Text node "Qrstuvwx"
1605 PASS Range 38 [testDiv, 0, comment, 5], point 83 [doctype, 0]
1606 FAIL Range 38 [testDiv, 0, comment, 5], point 84 [doctype, -17] assert_throws: M ust throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1607 selection.collapse(point[0], point[1]);
1608 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1609 PASS Range 38 [testDiv, 0, comment, 5], point 85 [doctype, 1]
1610 FAIL Range 38 [testDiv, 0, comment, 5], point 86 [foreignDoctype, 0] assert_thro ws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Documen tType function "function () {
1611 selection.collapse(point[0], point[1]);
1612 }" did not throw
1613 FAIL Range 38 [testDiv, 0, comment, 5], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTyp e function "function () {
1614 selection.collapse(point[0], point[1]);
1615 }" did not throw
1616 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 0 [paras[0].firstChild , -1]
1617 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 1 [paras[0].firstChild , 0]
1618 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1619 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 3 [paras[0].firstChild , 2]
1620 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 4 [paras[0].firstChild , 8]
1621 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1622 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 6 [paras[0].firstChild , 10]
1623 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 7 [paras[0].firstChild , 65535]
1624 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 8 [paras[1].firstChild , -1]
1625 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
1626 " but got Text node "Qrstuvwx"
1627 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
1628 " but got Text node "Qrstuvwx"
1629 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
1630 " but got Text node "Qrstuvwx"
1631 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
1632 " but got Text node "Qrstuvwx"
1633 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
1634 " but got Text node "Qrstuvwx"
1635 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 14 [paras[1].firstChil d, 10]
1636 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 15 [paras[1].firstChil d, 65535]
1637 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 16 [detachedPara1.firs tChild, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
1638 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 17 [detachedPara1.firs tChild, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
1639 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 18 [detachedPara1.firs tChild, 8] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Opqrstuv" but got Text node "Qrstuvwx"
1640 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 19 [detachedPara1.firs tChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the of fset is negative or greater than the node's length function "function () {
1641 selection.collapse(point[0], point[1]);
1642 }" did not throw
1643 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 20 [foreignPara1.first Child, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
1644 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 21 [foreignPara1.first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
1645 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 22 [foreignPara1.first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Efghijkl" but got Text node "Qrstuvwx"
1646 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 23 [foreignPara1.first Child, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the off set is negative or greater than the node's length function "function () {
1647 selection.collapse(point[0], point[1]);
1648 }" did not throw
1649 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 24 [document.documentE lement, -1]
1650 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 25 [document.documentE lement, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
1651 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1652 "
1653 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 26 [document.documentE lement, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
1654 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1655 "
1656 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 27 [document.documentE lement, 2] assert_equals: focusNode must equal the node we collapse()d to expect ed Element node <html><head><title>Selection.collapse() tests</title>
1657 <me... but got Text node "Qrstuvwx"
1658 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 28 [document.documentE lement, 7]
1659 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
1660 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1661 "
1662 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1663 </p><p id... but got Text node "Qrstuvwx"
1664 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 31 [foreignDoc.documen tElement, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title></title></head><body><p>Efghijkl</p><p... b ut got Text node "Qrstuvwx"
1665 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 32 [foreignDoc.documen tElement, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title></title></head><body><p>Efghijkl</p><p... b ut got Text node "Qrstuvwx"
1666 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 33 [foreignDoc.head, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <head><title></title></head> but got Text node "Qrstuvwx"
1667 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 34 [foreignDoc.body, 1 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrstuvwx"
1668 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 35 [paras[0], 0] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1669 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1670 "
1671 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 36 [paras[0], 1] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1672 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1673 "
1674 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 37 [paras[0], 2]
1675 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 38 [paras[1], 0] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1676 </p> but got Text node "Qrstuvwx"
1677 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 39 [paras[1], 1] asser t_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
1678 </p> but got Text node "Qrstuvwx"
1679 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 40 [paras[1], 2]
1680 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 41 [detachedPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Qrstuvwx"
1681 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 42 [detachedPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p>Opqrstuv</p> but got Text node "Qrstuvwx"
1682 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 43 [testDiv, 0] assert _equals: focusNode must equal the node we collapse()d to expected Element node < div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1683 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1684 "
1685 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 44 [testDiv, 3] assert _equals: focusNode must equal the node we collapse()d to expected Element node < div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1686 </p><p id="b" s... but got Text node "Qrstuvwx"
1687 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 45 [document, -1]
1688 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 46 [document, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1689 "
1690 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 47 [document, 1] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1691 "
1692 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 48 [document, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
1693 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 49 [document, 3]
1694 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 50 [comment, -1]
1695 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 51 [comment, 0] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--Alphabet soup?--> but got Text node "Qrstuvwx"
1696 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 52 [comment, 4] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--Alphabet soup?--> but got Text node "Qrstuvwx"
1697 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 53 [comment, 96]
1698 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 54 [foreignDoc, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 3 children but got Text node "Qrstuvwx"
1699 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 55 [foreignDoc, 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 3 children but got Text node "Qrstuvwx"
1700 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 56 [foreignComment, 2] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--"Commenter" and "commentator" mean different things. I'v...--> but go t Text node "Qrstuvwx"
1701 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 57 [foreignTextNode, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Text n ode "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
1702 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 58 [foreignTextNode, 3 6] assert_equals: focusNode must equal the node we collapse()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
1703 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 59 [xmlDoc, -1]
1704 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 60 [xmlDoc, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 4 children but got Text node "Qrstuvwx"
1705 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 61 [xmlDoc, 1] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 4 children but got Text node "Qrstuvwx"
1706 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 62 [xmlDoc, 5] assert_ throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative o r greater than the node's length function "function () {
1707 selection.collapse(point[0], point[1]);
1708 }" did not throw
1709 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 63 [xmlComment, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--I maliciously created a comment that will break incautiou...--> but got Te xt node "Qrstuvwx"
1710 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 64 [xmlComment, 4] ass ert_equals: focusNode must equal the node we collapse()d to expected Comment nod e <!--I maliciously created a comment that will break incautiou...--> but got Te xt node "Qrstuvwx"
1711 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 65 [processingInstruct ion, 0] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
1712 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 66 [processingInstruct ion, 5] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
1713 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 67 [processingInstruct ion, 9] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you know that \":s yn sync fromstart\" is very useful wh..." but got Text node "Qrstuvwx"
1714 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
1715 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
1716 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 70 [detachedForeignTex tNode, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Cdefghij" but got Text node "Qrstuvwx"
1717 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 71 [detachedForeignTex tNode, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Cdefghij" but got Text node "Qrstuvwx"
1718 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 72 [detachedXmlTextNod e, 0] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Klmnopqr" but got Text node "Qrstuvwx"
1719 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 73 [detachedXmlTextNod e, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Klmnopqr" but got Text node "Qrstuvwx"
1720 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 74 [detachedProcessing Instruction, 12] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "whippoorwill" and data "chirp c hirp chirp" but got Text node "Qrstuvwx"
1721 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 75 [detachedComment, 3 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
1722 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 76 [detachedComment, 5 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
1723 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 77 [detachedForeignCom ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1724 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 78 [detachedForeignCom ment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1725 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 79 [detachedXmlComment , 2] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
1726 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 80 [docfrag, 0] assert _equals: focusNode must equal the node we collapse()d to expected DocumentFragme nt node with 0 children but got Text node "Qrstuvwx"
1727 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 81 [foreignDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expected Documen tFragment node with 0 children but got Text node "Qrstuvwx"
1728 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 82 [xmlDocfrag, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected DocumentFra gment node with 0 children but got Text node "Qrstuvwx"
1729 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 83 [doctype, 0]
1730 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1731 selection.collapse(point[0], point[1]);
1732 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1733 PASS Range 39 [paras[2].firstChild, 4, comment, 2], point 85 [doctype, 1]
1734 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1735 selection.collapse(point[0], point[1]);
1736 }" did not throw
1737 FAIL Range 39 [paras[2].firstChild, 4, comment, 2], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1738 selection.collapse(point[0], point[1]);
1739 }" did not throw
1740 PASS Range 40 [paras[3], 1, comment, 8], point 0 [paras[0].firstChild, -1]
1741 PASS Range 40 [paras[3], 1, comment, 8], point 1 [paras[0].firstChild, 0]
1742 FAIL Range 40 [paras[3], 1, comment, 8], point 2 [paras[0].firstChild, 1] assert _equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1743 PASS Range 40 [paras[3], 1, comment, 8], point 3 [paras[0].firstChild, 2]
1744 PASS Range 40 [paras[3], 1, comment, 8], point 4 [paras[0].firstChild, 8]
1745 FAIL Range 40 [paras[3], 1, comment, 8], point 5 [paras[0].firstChild, 9] assert _equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1746 PASS Range 40 [paras[3], 1, comment, 8], point 6 [paras[0].firstChild, 10]
1747 PASS Range 40 [paras[3], 1, comment, 8], point 7 [paras[0].firstChild, 65535]
1748 PASS Range 40 [paras[3], 1, comment, 8], point 8 [paras[1].firstChild, -1]
1749 FAIL Range 40 [paras[3], 1, comment, 8], point 9 [paras[1].firstChild, 0] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
1750 " but got Text node "Qrstuvwx"
1751 FAIL Range 40 [paras[3], 1, comment, 8], point 10 [paras[1].firstChild, 1] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1752 " but got Text node "Qrstuvwx"
1753 FAIL Range 40 [paras[3], 1, comment, 8], point 11 [paras[1].firstChild, 2] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1754 " but got Text node "Qrstuvwx"
1755 FAIL Range 40 [paras[3], 1, comment, 8], point 12 [paras[1].firstChild, 8] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1756 " but got Text node "Qrstuvwx"
1757 FAIL Range 40 [paras[3], 1, comment, 8], point 13 [paras[1].firstChild, 9] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
1758 " but got Text node "Qrstuvwx"
1759 PASS Range 40 [paras[3], 1, comment, 8], point 14 [paras[1].firstChild, 10]
1760 PASS Range 40 [paras[3], 1, comment, 8], point 15 [paras[1].firstChild, 65535]
1761 FAIL Range 40 [paras[3], 1, comment, 8], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
1762 FAIL Range 40 [paras[3], 1, comment, 8], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
1763 FAIL Range 40 [paras[3], 1, comment, 8], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Opqrstuv" but got Text node "Qrstuvwx"
1764 FAIL Range 40 [paras[3], 1, comment, 8], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
1765 selection.collapse(point[0], point[1]);
1766 }" did not throw
1767 FAIL Range 40 [paras[3], 1, comment, 8], point 20 [foreignPara1.firstChild, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1768 FAIL Range 40 [paras[3], 1, comment, 8], point 21 [foreignPara1.firstChild, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1769 FAIL Range 40 [paras[3], 1, comment, 8], point 22 [foreignPara1.firstChild, 8] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
1770 FAIL Range 40 [paras[3], 1, comment, 8], point 23 [foreignPara1.firstChild, 9] a ssert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is nega tive or greater than the node's length function "function () {
1771 selection.collapse(point[0], point[1]);
1772 }" did not throw
1773 PASS Range 40 [paras[3], 1, comment, 8], point 24 [document.documentElement, -1]
1774 FAIL Range 40 [paras[3], 1, comment, 8], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1775 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1776 "
1777 FAIL Range 40 [paras[3], 1, comment, 8], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1778 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1779 "
1780 FAIL Range 40 [paras[3], 1, comment, 8], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
1781 <me... but got Text node "Qrstuvwx"
1782 PASS Range 40 [paras[3], 1, comment, 8], point 28 [document.documentElement, 7]
1783 FAIL Range 40 [paras[3], 1, comment, 8], point 29 [document.head, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <head> <title>Selection.collapse() tests</title>
1784 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1785 "
1786 FAIL Range 40 [paras[3], 1, comment, 8], point 30 [document.body, 3] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <body> <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1787 </p><p id... but got Text node "Qrstuvwx"
1788 FAIL Range 40 [paras[3], 1, comment, 8], point 31 [foreignDoc.documentElement, 0 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
1789 FAIL Range 40 [paras[3], 1, comment, 8], point 32 [foreignDoc.documentElement, 1 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <html><head><title></title></head><body><p>Efghijkl</p><p... but got Text node "Qrstuvwx"
1790 FAIL Range 40 [paras[3], 1, comment, 8], point 33 [foreignDoc.head, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Element node <hea d><title></title></head> but got Text node "Qrstuvwx"
1791 FAIL Range 40 [paras[3], 1, comment, 8], point 34 [foreignDoc.body, 1] assert_eq uals: focusNode must equal the node we collapse()d to expected Element node <bod y><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Text node "Qrst uvwx"
1792 FAIL Range 40 [paras[3], 1, comment, 8], point 35 [paras[0], 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="a">A ̈b̈c̈d̈ëf̈g̈ḧ
1793 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1794 "
1795 FAIL Range 40 [paras[3], 1, comment, 8], point 36 [paras[0], 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="a">A ̈b̈c̈d̈ëf̈g̈ḧ
1796 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1797 "
1798 PASS Range 40 [paras[3], 1, comment, 8], point 37 [paras[0], 2]
1799 FAIL Range 40 [paras[3], 1, comment, 8], point 38 [paras[1], 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="b" s tyle="display:none">Ijklmnop
1800 </p> but got Text node "Qrstuvwx"
1801 FAIL Range 40 [paras[3], 1, comment, 8], point 39 [paras[1], 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <p id="b" s tyle="display:none">Ijklmnop
1802 </p> but got Text node "Qrstuvwx"
1803 PASS Range 40 [paras[3], 1, comment, 8], point 40 [paras[1], 2]
1804 FAIL Range 40 [paras[3], 1, comment, 8], point 41 [detachedPara1, 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p>Opq rstuv</p> but got Text node "Qrstuvwx"
1805 FAIL Range 40 [paras[3], 1, comment, 8], point 42 [detachedPara1, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p>Opq rstuv</p> but got Text node "Qrstuvwx"
1806 FAIL Range 40 [paras[3], 1, comment, 8], point 43 [testDiv, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <div id="tes t"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1807 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1808 "
1809 FAIL Range 40 [paras[3], 1, comment, 8], point 44 [testDiv, 3] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <div id="tes t"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1810 </p><p id="b" s... but got Text node "Qrstuvwx"
1811 PASS Range 40 [paras[3], 1, comment, 8], point 45 [document, -1]
1812 FAIL Range 40 [paras[3], 1, comment, 8], point 46 [document, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1813 "
1814 FAIL Range 40 [paras[3], 1, comment, 8], point 47 [document, 1] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1815 "
1816 FAIL Range 40 [paras[3], 1, comment, 8], point 48 [document, 2] assert_equals: f ocusNode must equal the node we collapse()d to expected Document node with 2 chi ldren but got Text node "Qrstuvwx"
1817 PASS Range 40 [paras[3], 1, comment, 8], point 49 [document, 3]
1818 PASS Range 40 [paras[3], 1, comment, 8], point 50 [comment, -1]
1819 FAIL Range 40 [paras[3], 1, comment, 8], point 51 [comment, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1820 FAIL Range 40 [paras[3], 1, comment, 8], point 52 [comment, 4] assert_equals: fo cusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1821 PASS Range 40 [paras[3], 1, comment, 8], point 53 [comment, 96]
1822 FAIL Range 40 [paras[3], 1, comment, 8], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 c hildren but got Text node "Qrstuvwx"
1823 FAIL Range 40 [paras[3], 1, comment, 8], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 c hildren but got Text node "Qrstuvwx"
1824 FAIL Range 40 [paras[3], 1, comment, 8], point 56 [foreignComment, 2] assert_equ als: focusNode must equal the node we collapse()d to expected Comment node <!--" Commenter" and "commentator" mean different things. I'v...--> but got Text node "Qrstuvwx"
1825 FAIL Range 40 [paras[3], 1, comment, 8], point 57 [foreignTextNode, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "I admi t that I harbor doubts about whether we really need..." but got Text node "Qrstu vwx"
1826 FAIL Range 40 [paras[3], 1, comment, 8], point 58 [foreignTextNode, 36] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "I adm it that I harbor doubts about whether we really need..." but got Text node "Qrst uvwx"
1827 PASS Range 40 [paras[3], 1, comment, 8], point 59 [xmlDoc, -1]
1828 FAIL Range 40 [paras[3], 1, comment, 8], point 60 [xmlDoc, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Document node with 4 child ren but got Text node "Qrstuvwx"
1829 FAIL Range 40 [paras[3], 1, comment, 8], point 61 [xmlDoc, 1] assert_equals: foc usNode must equal the node we collapse()d to expected Document node with 4 child ren but got Text node "Qrstuvwx"
1830 FAIL Range 40 [paras[3], 1, comment, 8], point 62 [xmlDoc, 5] assert_throws: Mus t throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater t han the node's length function "function () {
1831 selection.collapse(point[0], point[1]);
1832 }" did not throw
1833 FAIL Range 40 [paras[3], 1, comment, 8], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mal iciously created a comment that will break incautiou...--> but got Text node "Qr stuvwx"
1834 FAIL Range 40 [paras[3], 1, comment, 8], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--I mal iciously created a comment that will break incautiou...--> but got Text node "Qr stuvwx"
1835 FAIL Range 40 [paras[3], 1, comment, 8], point 65 [processingInstruction, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
1836 FAIL Range 40 [paras[3], 1, comment, 8], point 66 [processingInstruction, 5] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
1837 FAIL Range 40 [paras[3], 1, comment, 8], point 67 [processingInstruction, 9] ass ert_equals: focusNode must equal the node we collapse()d to expected ProcessingI nstruction node with target "somePI" and data "Did you know that \":syn sync fro mstart\" is very useful wh..." but got Text node "Qrstuvwx"
1838 FAIL Range 40 [paras[3], 1, comment, 8], point 68 [detachedTextNode, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Uvwxy zab" but got Text node "Qrstuvwx"
1839 FAIL Range 40 [paras[3], 1, comment, 8], point 69 [detachedTextNode, 8] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Uvwxy zab" but got Text node "Qrstuvwx"
1840 FAIL Range 40 [paras[3], 1, comment, 8], point 70 [detachedForeignTextNode, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1841 FAIL Range 40 [paras[3], 1, comment, 8], point 71 [detachedForeignTextNode, 8] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1842 FAIL Range 40 [paras[3], 1, comment, 8], point 72 [detachedXmlTextNode, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Kl mnopqr" but got Text node "Qrstuvwx"
1843 FAIL Range 40 [paras[3], 1, comment, 8], point 73 [detachedXmlTextNode, 8] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Kl mnopqr" but got Text node "Qrstuvwx"
1844 FAIL Range 40 [paras[3], 1, comment, 8], point 74 [detachedProcessingInstruction , 12] assert_equals: focusNode must equal the node we collapse()d to expected Pr ocessingInstruction node with target "whippoorwill" and data "chirp chirp chirp" but got Text node "Qrstuvwx"
1845 FAIL Range 40 [paras[3], 1, comment, 8], point 75 [detachedComment, 3] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- Stuvwxyz--> but got Text node "Qrstuvwx"
1846 FAIL Range 40 [paras[3], 1, comment, 8], point 76 [detachedComment, 5] assert_eq uals: focusNode must equal the node we collapse()d to expected Comment node <!-- Stuvwxyz--> but got Text node "Qrstuvwx"
1847 FAIL Range 40 [paras[3], 1, comment, 8], point 77 [detachedForeignComment, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--אריה יהודה--> but got Text node "Qrstuvwx"
1848 FAIL Range 40 [paras[3], 1, comment, 8], point 78 [detachedForeignComment, 4] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--אריה יהודה--> but got Text node "Qrstuvwx"
1849 FAIL Range 40 [paras[3], 1, comment, 8], point 79 [detachedXmlComment, 2] assert _equals: focusNode must equal the node we collapse()d to expected Comment node < !--בן חיים אליעזר--> but got Text node "Qrstuvwx"
1850 FAIL Range 40 [paras[3], 1, comment, 8], point 80 [docfrag, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected DocumentFragment node wit h 0 children but got Text node "Qrstuvwx"
1851 FAIL Range 40 [paras[3], 1, comment, 8], point 81 [foreignDocfrag, 0] assert_equ als: focusNode must equal the node we collapse()d to expected DocumentFragment n ode with 0 children but got Text node "Qrstuvwx"
1852 FAIL Range 40 [paras[3], 1, comment, 8], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
1853 PASS Range 40 [paras[3], 1, comment, 8], point 83 [doctype, 0]
1854 FAIL Range 40 [paras[3], 1, comment, 8], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTyp e function "function () {
1855 selection.collapse(point[0], point[1]);
1856 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1857 PASS Range 40 [paras[3], 1, comment, 8], point 85 [doctype, 1]
1858 FAIL Range 40 [paras[3], 1, comment, 8], point 86 [foreignDoctype, 0] assert_thr ows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docume ntType function "function () {
1859 selection.collapse(point[0], point[1]);
1860 }" did not throw
1861 FAIL Range 40 [paras[3], 1, comment, 8], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
1862 selection.collapse(point[0], point[1]);
1863 }" did not throw
1864 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 0 [paras[0].firstChild, -1]
1865 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 1 [paras[0].firstChild, 0]
1866 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 2 [paras[0].firstChild, 1] a ssert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1867 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 3 [paras[0].firstChild, 2]
1868 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 4 [paras[0].firstChild, 8]
1869 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 5 [paras[0].firstChild, 9] a ssert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1870 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 6 [paras[0].firstChild, 10]
1871 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 7 [paras[0].firstChild, 6553 5]
1872 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 8 [paras[1].firstChild, -1]
1873 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 9 [paras[1].firstChild, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1874 " but got Text node "Qrstuvwx"
1875 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
1876 " but got Text node "Qrstuvwx"
1877 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
1878 " but got Text node "Qrstuvwx"
1879 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
1880 " but got Text node "Qrstuvwx"
1881 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
1882 " but got Text node "Qrstuvwx"
1883 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 14 [paras[1].firstChild, 10]
1884 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 15 [paras[1].firstChild, 655 35]
1885 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 16 [detachedPara1.firstChild , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1886 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 17 [detachedPara1.firstChild , 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1887 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 18 [detachedPara1.firstChild , 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1888 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 19 [detachedPara1.firstChild , 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset i s negative or greater than the node's length function "function () {
1889 selection.collapse(point[0], point[1]);
1890 }" did not throw
1891 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1892 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1893 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1894 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
1895 selection.collapse(point[0], point[1]);
1896 }" did not throw
1897 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 24 [document.documentElement , -1]
1898 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 25 [document.documentElement , 0] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
1899 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1900 "
1901 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 26 [document.documentElement , 1] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
1902 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1903 "
1904 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 27 [document.documentElement , 2] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
1905 <me... but got Text node "Qrstuvwx"
1906 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 28 [document.documentElement , 7]
1907 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 29 [document.head, 1] assert _equals: focusNode must equal the node we collapse()d to expected Element node < head><title>Selection.collapse() tests</title>
1908 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1909 "
1910 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 30 [document.body, 3] assert _equals: focusNode must equal the node we collapse()d to expected Element node < body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1911 </p><p id... but got Text node "Qrstuvwx"
1912 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 31 [foreignDoc.documentEleme nt, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
1913 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 32 [foreignDoc.documentEleme nt, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
1914 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 33 [foreignDoc.head, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1915 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 34 [foreignDoc.body, 1] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1916 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 35 [paras[0], 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "a">Äb̈c̈d̈ëf̈g̈ḧ
1917 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1918 "
1919 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 36 [paras[0], 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "a">Äb̈c̈d̈ëf̈g̈ḧ
1920 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1921 "
1922 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 37 [paras[0], 2]
1923 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 38 [paras[1], 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "b" style="display:none">Ijklmnop
1924 </p> but got Text node "Qrstuvwx"
1925 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 39 [paras[1], 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "b" style="display:none">Ijklmnop
1926 </p> but got Text node "Qrstuvwx"
1927 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 40 [paras[1], 2]
1928 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 41 [detachedPara1, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1929 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 42 [detachedPara1, 1] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1930 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 43 [testDiv, 0] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <div id ="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1931 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1932 "
1933 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 44 [testDiv, 3] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <div id ="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1934 </p><p id="b" s... but got Text node "Qrstuvwx"
1935 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 45 [document, -1]
1936 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 46 [document, 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1937 "
1938 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 47 [document, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1939 "
1940 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 48 [document, 2] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
1941 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 49 [document, 3]
1942 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 50 [comment, -1]
1943 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 51 [comment, 0] assert_equal s: focusNode must equal the node we collapse()d to expected Comment node <!--Alp habet soup?--> but got Text node "Qrstuvwx"
1944 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 52 [comment, 4] assert_equal s: focusNode must equal the node we collapse()d to expected Comment node <!--Alp habet soup?--> but got Text node "Qrstuvwx"
1945 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 53 [comment, 96]
1946 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 54 [foreignDoc, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1947 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 55 [foreignDoc, 1] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1948 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 56 [foreignComment, 2] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1949 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 57 [foreignTextNode, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1950 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 58 [foreignTextNode, 36] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
1951 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 59 [xmlDoc, -1]
1952 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 60 [xmlDoc, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1953 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 61 [xmlDoc, 1] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1954 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 62 [xmlDoc, 5] assert_throws : Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or grea ter than the node's length function "function () {
1955 selection.collapse(point[0], point[1]);
1956 }" did not throw
1957 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 63 [xmlComment, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1958 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 64 [xmlComment, 4] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1959 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 65 [processingInstruction, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
1960 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 66 [processingInstruction, 5 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
1961 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 67 [processingInstruction, 9 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
1962 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 68 [detachedTextNode, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
1963 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 69 [detachedTextNode, 8] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
1964 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1965 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1966 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1967 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1968 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 74 [detachedProcessingInstru ction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
1969 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 75 [detachedComment, 3] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1970 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 76 [detachedComment, 5] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1971 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1972 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1973 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 79 [detachedXmlComment, 2] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1974 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 80 [docfrag, 0] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1975 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 81 [foreignDocfrag, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1976 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 82 [xmlDocfrag, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1977 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 83 [doctype, 0]
1978 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 84 [doctype, -17] assert_thr ows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docume ntType function "function () {
1979 selection.collapse(point[0], point[1]);
1980 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
1981 PASS Range 41 [foreignDoc, 0, foreignDoc, 0], point 85 [doctype, 1]
1982 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 86 [foreignDoctype, 0] asser t_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a D ocumentType function "function () {
1983 selection.collapse(point[0], point[1]);
1984 }" did not throw
1985 FAIL Range 41 [foreignDoc, 0, foreignDoc, 0], point 87 [xmlDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
1986 selection.collapse(point[0], point[1]);
1987 }" did not throw
1988 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 0 [paras[0].firstChild, -1]
1989 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 1 [paras[0].firstChild, 0]
1990 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1991 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 3 [paras[0].firstChild, 2]
1992 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 4 [paras[0].firstChild, 8]
1993 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1994 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 6 [paras[0].firstChild, 10]
1995 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 7 [paras[0].firstChild, 65535]
1996 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 8 [paras[1].firstChild, -1]
1997 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1998 " but got Text node "Qrstuvwx"
1999 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2000 " but got Text node "Qrstuvwx"
2001 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2002 " but got Text node "Qrstuvwx"
2003 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2004 " but got Text node "Qrstuvwx"
2005 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2006 " but got Text node "Qrstuvwx"
2007 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 14 [paras[1].firstChild, 10]
2008 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 15 [paras[1].firstChild, 65535]
2009 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 16 [detachedPara1.firstC hild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2010 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 17 [detachedPara1.firstC hild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2011 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 18 [detachedPara1.firstC hild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2012 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 19 [detachedPara1.firstC hild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offs et is negative or greater than the node's length function "function () {
2013 selection.collapse(point[0], point[1]);
2014 }" did not throw
2015 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 20 [foreignPara1.firstCh ild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2016 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 21 [foreignPara1.firstCh ild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2017 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 22 [foreignPara1.firstCh ild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2018 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 23 [foreignPara1.firstCh ild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offse t is negative or greater than the node's length function "function () {
2019 selection.collapse(point[0], point[1]);
2020 }" did not throw
2021 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 24 [document.documentEle ment, -1]
2022 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 25 [document.documentEle ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2023 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2024 "
2025 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 26 [document.documentEle ment, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2026 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2027 "
2028 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 27 [document.documentEle ment, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2029 <me... but got Text node "Qrstuvwx"
2030 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 28 [document.documentEle ment, 7]
2031 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 29 [document.head, 1] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <head><title>Selection.collapse() tests</title>
2032 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2033 "
2034 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 30 [document.body, 3] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2035 </p><p id... but got Text node "Qrstuvwx"
2036 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 31 [foreignDoc.documentE lement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
2037 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 32 [foreignDoc.documentE lement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
2038 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2039 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2040 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 35 [paras[0], 0] assert_ equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2041 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2042 "
2043 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 36 [paras[0], 1] assert_ equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2044 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2045 "
2046 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 37 [paras[0], 2]
2047 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 38 [paras[1], 0] assert_ equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2048 </p> but got Text node "Qrstuvwx"
2049 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 39 [paras[1], 1] assert_ equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2050 </p> but got Text node "Qrstuvwx"
2051 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 40 [paras[1], 2]
2052 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 41 [detachedPara1, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2053 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 42 [detachedPara1, 1] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2054 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 43 [testDiv, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <di v id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2055 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2056 "
2057 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 44 [testDiv, 3] assert_e quals: focusNode must equal the node we collapse()d to expected Element node <di v id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2058 </p><p id="b" s... but got Text node "Qrstuvwx"
2059 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 45 [document, -1]
2060 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 46 [document, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2061 "
2062 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 47 [document, 1] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2063 "
2064 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 48 [document, 2] assert_ equals: focusNode must equal the node we collapse()d to expected Document node w ith 2 children but got Text node "Qrstuvwx"
2065 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 49 [document, 3]
2066 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 50 [comment, -1]
2067 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 51 [comment, 0] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Alphabet soup?--> but got Text node "Qrstuvwx"
2068 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 52 [comment, 4] assert_e quals: focusNode must equal the node we collapse()d to expected Comment node <!- -Alphabet soup?--> but got Text node "Qrstuvwx"
2069 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 53 [comment, 96]
2070 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 54 [foreignDoc, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2071 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 55 [foreignDoc, 1] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2072 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 56 [foreignComment, 2] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2073 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2074 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2075 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 59 [xmlDoc, -1]
2076 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 60 [xmlDoc, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2077 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 61 [xmlDoc, 1] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2078 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 62 [xmlDoc, 5] assert_th rows: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2079 selection.collapse(point[0], point[1]);
2080 }" did not throw
2081 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 63 [xmlComment, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2082 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 64 [xmlComment, 4] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2083 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 65 [processingInstructio n, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2084 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 66 [processingInstructio n, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2085 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 67 [processingInstructio n, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2086 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2087 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2088 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 70 [detachedForeignTextN ode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2089 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 71 [detachedForeignTextN ode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2090 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2091 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2092 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 74 [detachedProcessingIn struction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2093 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2094 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2095 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 77 [detachedForeignComme nt, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2096 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 78 [detachedForeignComme nt, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2097 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2098 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 80 [docfrag, 0] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2099 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 81 [foreignDocfrag, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2100 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 82 [xmlDocfrag, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2101 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 83 [doctype, 0]
2102 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 84 [doctype, -17] assert _throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Do cumentType function "function () {
2103 selection.collapse(point[0], point[1]);
2104 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2105 PASS Range 42 [foreignDoc, 1, foreignComment, 2], point 85 [doctype, 1]
2106 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 86 [foreignDoctype, 0] a ssert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2107 selection.collapse(point[0], point[1]);
2108 }" did not throw
2109 FAIL Range 42 [foreignDoc, 1, foreignComment, 2], point 87 [xmlDoctype, 0] asser t_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a D ocumentType function "function () {
2110 selection.collapse(point[0], point[1]);
2111 }" did not throw
2112 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 0 [paras[0].first Child, -1]
2113 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 1 [paras[0].first Child, 0]
2114 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 2 [paras[0].first Child, 1] assert_equals: focusOffset must equal the offset we collapse()d to exp ected 1 but got 2
2115 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 3 [paras[0].first Child, 2]
2116 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 4 [paras[0].first Child, 8]
2117 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 5 [paras[0].first Child, 9] assert_equals: focusOffset must equal the offset we collapse()d to exp ected 9 but got 10
2118 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 6 [paras[0].first Child, 10]
2119 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 7 [paras[0].first Child, 65535]
2120 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 8 [paras[1].first Child, -1]
2121 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 9 [paras[1].first Child, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
2122 " but got Text node "Qrstuvwx"
2123 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 10 [paras[1].firs tChild, 1] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Ijklmnop
2124 " but got Text node "Qrstuvwx"
2125 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 11 [paras[1].firs tChild, 2] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Ijklmnop
2126 " but got Text node "Qrstuvwx"
2127 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 12 [paras[1].firs tChild, 8] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Ijklmnop
2128 " but got Text node "Qrstuvwx"
2129 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 13 [paras[1].firs tChild, 9] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Ijklmnop
2130 " but got Text node "Qrstuvwx"
2131 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 14 [paras[1].firs tChild, 10]
2132 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 15 [paras[1].firs tChild, 65535]
2133 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 16 [detachedPara1 .firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2134 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 17 [detachedPara1 .firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2135 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 18 [detachedPara1 .firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2136 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 19 [detachedPara1 .firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if t he offset is negative or greater than the node's length function "function () {
2137 selection.collapse(point[0], point[1]);
2138 }" did not throw
2139 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 20 [foreignPara1. firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2140 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 21 [foreignPara1. firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2141 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 22 [foreignPara1. firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2142 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 23 [foreignPara1. firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if th e offset is negative or greater than the node's length function "function () {
2143 selection.collapse(point[0], point[1]);
2144 }" did not throw
2145 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 24 [document.docu mentElement, -1]
2146 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 25 [document.docu mentElement, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <html><head><title>Selection.collapse() tests</title>
2147 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2148 "
2149 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 26 [document.docu mentElement, 1] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <html><head><title>Selection.collapse() tests</title>
2150 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2151 "
2152 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 27 [document.docu mentElement, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <html><head><title>Selection.collapse() tests</title>
2153 <me... but got Text node "Qrstuvwx"
2154 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 28 [document.docu mentElement, 7]
2155 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 29 [document.head , 1] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <head><title>Selection.collapse() tests</title>
2156 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2157 "
2158 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 30 [document.body , 3] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2159 </p><p id... but got Text node "Qrstuvwx"
2160 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 31 [foreignDoc.do cumentElement, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
2161 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 32 [foreignDoc.do cumentElement, 1] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
2162 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 33 [foreignDoc.he ad, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2163 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 34 [foreignDoc.bo dy, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2164 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2165 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2166 "
2167 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2168 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2169 "
2170 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 37 [paras[0], 2]
2171 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2172 </p> but got Text node "Qrstuvwx"
2173 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2174 </p> but got Text node "Qrstuvwx"
2175 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 40 [paras[1], 2]
2176 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 41 [detachedPara1 , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2177 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 42 [detachedPara1 , 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2178 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 43 [testDiv, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2179 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2180 "
2181 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 44 [testDiv, 3] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2182 </p><p id="b" s... but got Text node "Qrstuvwx"
2183 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 45 [document, -1]
2184 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2185 "
2186 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2187 "
2188 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
2189 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 49 [document, 3]
2190 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 50 [comment, -1]
2191 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 51 [comment, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2192 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 52 [comment, 4] a ssert_equals: focusNode must equal the node we collapse()d to expected Comment n ode <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2193 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 53 [comment, 96]
2194 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 54 [foreignDoc, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
2195 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 55 [foreignDoc, 1 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
2196 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 56 [foreignCommen t, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2197 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 57 [foreignTextNo de, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2198 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 58 [foreignTextNo de, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2199 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 59 [xmlDoc, -1]
2200 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 60 [xmlDoc, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2201 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 61 [xmlDoc, 1] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2202 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 62 [xmlDoc, 5] as sert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negat ive or greater than the node's length function "function () {
2203 selection.collapse(point[0], point[1]);
2204 }" did not throw
2205 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 63 [xmlComment, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
2206 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 64 [xmlComment, 4 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
2207 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 65 [processingIns truction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2208 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 66 [processingIns truction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2209 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 67 [processingIns truction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2210 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 68 [detachedTextN ode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2211 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 69 [detachedTextN ode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2212 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 70 [detachedForei gnTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2213 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 71 [detachedForei gnTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2214 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 72 [detachedXmlTe xtNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
2215 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 73 [detachedXmlTe xtNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
2216 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 74 [detachedProce ssingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2217 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 75 [detachedComme nt, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2218 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 76 [detachedComme nt, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2219 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 77 [detachedForei gnComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2220 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 78 [detachedForei gnComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2221 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 79 [detachedXmlCo mment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
2222 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 80 [docfrag, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2223 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 81 [foreignDocfra g, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2224 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 82 [xmlDocfrag, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
2225 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 83 [doctype, 0]
2226 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2227 selection.collapse(point[0], point[1]);
2228 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2229 PASS Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 85 [doctype, 1]
2230 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 86 [foreignDoctyp e, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2231 selection.collapse(point[0], point[1]);
2232 }" did not throw
2233 FAIL Range 43 [foreignDoc.body, 0, foreignTextNode, 36], point 87 [xmlDoctype, 0 ] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2234 selection.collapse(point[0], point[1]);
2235 }" did not throw
2236 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 0 [paras[0].firstChild, -1]
2237 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 1 [paras[0].firstChild, 0]
2238 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 2 [paras[0].firstChild, 1] assert_eq uals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
2239 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 3 [paras[0].firstChild, 2]
2240 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 4 [paras[0].firstChild, 8]
2241 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 5 [paras[0].firstChild, 9] assert_eq uals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
2242 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 6 [paras[0].firstChild, 10]
2243 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 7 [paras[0].firstChild, 65535]
2244 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 8 [paras[1].firstChild, -1]
2245 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 9 [paras[1].firstChild, 0] assert_eq uals: focusNode must equal the node we collapse()d to expected Text node "Ijklmn op
2246 " but got Text node "Qrstuvwx"
2247 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 10 [paras[1].firstChild, 1] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Ijklm nop
2248 " but got Text node "Qrstuvwx"
2249 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 11 [paras[1].firstChild, 2] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Ijklm nop
2250 " but got Text node "Qrstuvwx"
2251 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 12 [paras[1].firstChild, 8] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Ijklm nop
2252 " but got Text node "Qrstuvwx"
2253 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 13 [paras[1].firstChild, 9] assert_e quals: focusNode must equal the node we collapse()d to expected Text node "Ijklm nop
2254 " but got Text node "Qrstuvwx"
2255 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 14 [paras[1].firstChild, 10]
2256 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 15 [paras[1].firstChild, 65535]
2257 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 16 [detachedPara1.firstChild, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
2258 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 17 [detachedPara1.firstChild, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
2259 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 18 [detachedPara1.firstChild, 8] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
2260 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 19 [detachedPara1.firstChild, 9] ass ert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negati ve or greater than the node's length function "function () {
2261 selection.collapse(point[0], point[1]);
2262 }" did not throw
2263 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 20 [foreignPara1.firstChild, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2264 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 21 [foreignPara1.firstChild, 1] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2265 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 22 [foreignPara1.firstChild, 8] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2266 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 23 [foreignPara1.firstChild, 9] asse rt_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negativ e or greater than the node's length function "function () {
2267 selection.collapse(point[0], point[1]);
2268 }" did not throw
2269 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 24 [document.documentElement, -1]
2270 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 25 [document.documentElement, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <html><head><title>Selection.collapse() tests</title>
2271 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2272 "
2273 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 26 [document.documentElement, 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <html><head><title>Selection.collapse() tests</title>
2274 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2275 "
2276 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 27 [document.documentElement, 2] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <html><head><title>Selection.collapse() tests</title>
2277 <me... but got Text node "Qrstuvwx"
2278 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 28 [document.documentElement, 7]
2279 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><ti tle>Selection.collapse() tests</title>
2280 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2281 "
2282 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><di v id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2283 </p><p id... but got Text node "Qrstuvwx"
2284 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 31 [foreignDoc.documentElement, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2285 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 32 [foreignDoc.documentElement, 1] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2286 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 33 [foreignDoc.head, 0] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2287 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 34 [foreignDoc.body, 1] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2288 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 35 [paras[0], 0] assert_equals: focu sNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈ c̈d̈ëf̈g̈ḧ
2289 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2290 "
2291 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 36 [paras[0], 1] assert_equals: focu sNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈ c̈d̈ëf̈g̈ḧ
2292 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2293 "
2294 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 37 [paras[0], 2]
2295 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 38 [paras[1], 0] assert_equals: focu sNode must equal the node we collapse()d to expected Element node <p id="b" styl e="display:none">Ijklmnop
2296 </p> but got Text node "Qrstuvwx"
2297 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 39 [paras[1], 1] assert_equals: focu sNode must equal the node we collapse()d to expected Element node <p id="b" styl e="display:none">Ijklmnop
2298 </p> but got Text node "Qrstuvwx"
2299 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 40 [paras[1], 2]
2300 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2301 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2302 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 43 [testDiv, 0] assert_equals: focus Node must equal the node we collapse()d to expected Element node <div id="test"> <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2303 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2304 "
2305 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 44 [testDiv, 3] assert_equals: focus Node must equal the node we collapse()d to expected Element node <div id="test"> <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2306 </p><p id="b" s... but got Text node "Qrstuvwx"
2307 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 45 [document, -1]
2308 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 46 [document, 0] assert_equals: focu sNode must equal the node we collapse()d to expected Document node with 2 childr en but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2309 "
2310 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 47 [document, 1] assert_equals: focu sNode must equal the node we collapse()d to expected Document node with 2 childr en but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2311 "
2312 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 48 [document, 2] assert_equals: focu sNode must equal the node we collapse()d to expected Document node with 2 childr en but got Text node "Qrstuvwx"
2313 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 49 [document, 3]
2314 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 50 [comment, -1]
2315 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 51 [comment, 0] assert_equals: focus Node must equal the node we collapse()d to expected Comment node <!--Alphabet so up?--> but got Text node "Qrstuvwx"
2316 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 52 [comment, 4] assert_equals: focus Node must equal the node we collapse()d to expected Comment node <!--Alphabet so up?--> but got Text node "Qrstuvwx"
2317 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 53 [comment, 96]
2318 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 54 [foreignDoc, 0] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2319 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 55 [foreignDoc, 1] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2320 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 56 [foreignComment, 2] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2321 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 57 [foreignTextNode, 0] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2322 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 58 [foreignTextNode, 36] assert_equa ls: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2323 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 59 [xmlDoc, -1]
2324 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 60 [xmlDoc, 0] assert_equals: select ion.rangeCount must equal 1 after collapse() expected 1 but got 0
2325 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 61 [xmlDoc, 1] assert_equals: select ion.rangeCount must equal 1 after collapse() expected 1 but got 0
2326 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 62 [xmlDoc, 5] assert_throws: Must t hrow INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2327 selection.collapse(point[0], point[1]);
2328 }" did not throw
2329 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 63 [xmlComment, 0] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2330 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 64 [xmlComment, 4] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2331 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 65 [processingInstruction, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2332 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 66 [processingInstruction, 5] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2333 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 67 [processingInstruction, 9] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2334 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 68 [detachedTextNode, 0] assert_equa ls: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2335 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 69 [detachedTextNode, 8] assert_equa ls: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2336 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 70 [detachedForeignTextNode, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2337 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 71 [detachedForeignTextNode, 8] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2338 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 72 [detachedXmlTextNode, 0] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2339 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 73 [detachedXmlTextNode, 8] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2340 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 74 [detachedProcessingInstruction, 1 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2341 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 75 [detachedComment, 3] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2342 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 76 [detachedComment, 5] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2343 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 77 [detachedForeignComment, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2344 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 78 [detachedForeignComment, 4] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2345 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 79 [detachedXmlComment, 2] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2346 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 80 [docfrag, 0] assert_equals: selec tion.rangeCount must equal 1 after collapse() expected 1 but got 0
2347 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 81 [foreignDocfrag, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2348 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 82 [xmlDocfrag, 0] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2349 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 83 [doctype, 0]
2350 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 84 [doctype, -17] assert_throws: Mus t throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType f unction "function () {
2351 selection.collapse(point[0], point[1]);
2352 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2353 PASS Range 44 [xmlDoc, 0, xmlDoc, 0], point 85 [doctype, 1]
2354 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 86 [foreignDoctype, 0] assert_throws : Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentT ype function "function () {
2355 selection.collapse(point[0], point[1]);
2356 }" did not throw
2357 FAIL Range 44 [xmlDoc, 0, xmlDoc, 0], point 87 [xmlDoctype, 0] assert_throws: Mu st throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2358 selection.collapse(point[0], point[1]);
2359 }" did not throw
2360 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 0 [paras[0].firstChild, -1]
2361 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 1 [paras[0].firstChild, 0]
2362 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
2363 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 3 [paras[0].firstChild, 2]
2364 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 4 [paras[0].firstChild, 8]
2365 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
2366 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 6 [paras[0].firstChild, 10]
2367 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 7 [paras[0].firstChild, 65535]
2368 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 8 [paras[1].firstChild, -1]
2369 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
2370 " but got Text node "Qrstuvwx"
2371 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
2372 " but got Text node "Qrstuvwx"
2373 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
2374 " but got Text node "Qrstuvwx"
2375 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
2376 " but got Text node "Qrstuvwx"
2377 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
2378 " but got Text node "Qrstuvwx"
2379 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 14 [paras[1].firstChild, 10]
2380 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 15 [paras[1].firstChild, 65535]
2381 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2382 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2383 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
2384 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is ne gative or greater than the node's length function "function () {
2385 selection.collapse(point[0], point[1]);
2386 }" did not throw
2387 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2388 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2389 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2390 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is neg ative or greater than the node's length function "function () {
2391 selection.collapse(point[0], point[1]);
2392 }" did not throw
2393 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 24 [document.documentElement, -1 ]
2394 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2395 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2396 "
2397 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2398 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2399 "
2400 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2401 <me... but got Text node "Qrstuvwx"
2402 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 28 [document.documentElement, 7]
2403 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 29 [document.head, 1] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <head ><title>Selection.collapse() tests</title>
2404 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2405 "
2406 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 30 [document.body, 3] assert_equ als: focusNode must equal the node we collapse()d to expected Element node <body ><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2407 </p><p id... but got Text node "Qrstuvwx"
2408 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2409 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2410 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 33 [foreignDoc.head, 0] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2411 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 34 [foreignDoc.body, 1] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2412 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
2413 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2414 "
2415 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a"> Äb̈c̈d̈ëf̈g̈ḧ
2416 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2417 "
2418 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 37 [paras[0], 2]
2419 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2420 </p> but got Text node "Qrstuvwx"
2421 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2422 </p> but got Text node "Qrstuvwx"
2423 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 40 [paras[1], 2]
2424 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 41 [detachedPara1, 0] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2425 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 42 [detachedPara1, 1] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2426 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 43 [testDiv, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2427 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2428 "
2429 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 44 [testDiv, 3] assert_equals: f ocusNode must equal the node we collapse()d to expected Element node <div id="te st"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2430 </p><p id="b" s... but got Text node "Qrstuvwx"
2431 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 45 [document, -1]
2432 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2433 "
2434 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2435 "
2436 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 ch ildren but got Text node "Qrstuvwx"
2437 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 49 [document, 3]
2438 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 50 [comment, -1]
2439 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 51 [comment, 0] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
2440 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 52 [comment, 4] assert_equals: f ocusNode must equal the node we collapse()d to expected Comment node <!--Alphabe t soup?--> but got Text node "Qrstuvwx"
2441 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 53 [comment, 96]
2442 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 54 [foreignDoc, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2443 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 55 [foreignDoc, 1] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2444 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 56 [foreignComment, 2] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2445 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 57 [foreignTextNode, 0] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2446 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 58 [foreignTextNode, 36] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2447 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 59 [xmlDoc, -1]
2448 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 60 [xmlDoc, 0] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2449 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 61 [xmlDoc, 1] assert_equals: se lection.rangeCount must equal 1 after collapse() expected 1 but got 0
2450 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 62 [xmlDoc, 5] assert_throws: Mu st throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2451 selection.collapse(point[0], point[1]);
2452 }" did not throw
2453 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 63 [xmlComment, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2454 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 64 [xmlComment, 4] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2455 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 65 [processingInstruction, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2456 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 66 [processingInstruction, 5] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2457 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 67 [processingInstruction, 9] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
2458 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 68 [detachedTextNode, 0] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2459 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 69 [detachedTextNode, 8] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2460 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2461 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2462 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 72 [detachedXmlTextNode, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2463 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 73 [detachedXmlTextNode, 8] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2464 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 74 [detachedProcessingInstructio n, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2465 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 75 [detachedComment, 3] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2466 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 76 [detachedComment, 5] assert_e quals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2467 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 77 [detachedForeignComment, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2468 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 78 [detachedForeignComment, 4] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2469 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 79 [detachedXmlComment, 2] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2470 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 80 [docfrag, 0] assert_equals: s election.rangeCount must equal 1 after collapse() expected 1 but got 0
2471 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 81 [foreignDocfrag, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2472 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 82 [xmlDocfrag, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2473 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 83 [doctype, 0]
2474 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTy pe function "function () {
2475 selection.collapse(point[0], point[1]);
2476 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2477 PASS Range 45 [xmlDoc, 1, xmlComment, 0], point 85 [doctype, 1]
2478 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 86 [foreignDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
2479 selection.collapse(point[0], point[1]);
2480 }" did not throw
2481 FAIL Range 45 [xmlDoc, 1, xmlComment, 0], point 87 [xmlDoctype, 0] assert_throws : Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentT ype function "function () {
2482 selection.collapse(point[0], point[1]);
2483 }" did not throw
2484 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 0 [paras[0].firs tChild, -1]
2485 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 1 [paras[0].firs tChild, 0]
2486 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 2 [paras[0].firs tChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to ex pected 1 but got 2
2487 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 3 [paras[0].firs tChild, 2]
2488 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 4 [paras[0].firs tChild, 8]
2489 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 5 [paras[0].firs tChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to ex pected 9 but got 10
2490 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 6 [paras[0].firs tChild, 10]
2491 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 7 [paras[0].firs tChild, 65535]
2492 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 8 [paras[1].firs tChild, -1]
2493 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 9 [paras[1].firs tChild, 0] assert_equals: focusNode must equal the node we collapse()d to expect ed Text node "Ijklmnop
2494 " but got Text node "Qrstuvwx"
2495 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 10 [paras[1].fir stChild, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Ijklmnop
2496 " but got Text node "Qrstuvwx"
2497 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 11 [paras[1].fir stChild, 2] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Ijklmnop
2498 " but got Text node "Qrstuvwx"
2499 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 12 [paras[1].fir stChild, 8] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Ijklmnop
2500 " but got Text node "Qrstuvwx"
2501 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 13 [paras[1].fir stChild, 9] assert_equals: focusNode must equal the node we collapse()d to expec ted Text node "Ijklmnop
2502 " but got Text node "Qrstuvwx"
2503 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 14 [paras[1].fir stChild, 10]
2504 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 15 [paras[1].fir stChild, 65535]
2505 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 16 [detachedPara 1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2506 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 17 [detachedPara 1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2507 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 18 [detachedPara 1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2508 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 19 [detachedPara 1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2509 selection.collapse(point[0], point[1]);
2510 }" did not throw
2511 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 20 [foreignPara1 .firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2512 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 21 [foreignPara1 .firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2513 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 22 [foreignPara1 .firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2514 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 23 [foreignPara1 .firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if t he offset is negative or greater than the node's length function "function () {
2515 selection.collapse(point[0], point[1]);
2516 }" did not throw
2517 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 24 [document.doc umentElement, -1]
2518 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 25 [document.doc umentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2519 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2520 "
2521 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 26 [document.doc umentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2522 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2523 "
2524 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 27 [document.doc umentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
2525 <me... but got Text node "Qrstuvwx"
2526 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 28 [document.doc umentElement, 7]
2527 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 29 [document.hea d, 1] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <head><title>Selection.collapse() tests</title>
2528 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2529 "
2530 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 30 [document.bod y, 3] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2531 </p><p id... but got Text node "Qrstuvwx"
2532 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 31 [foreignDoc.d ocumentElement, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2533 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 32 [foreignDoc.d ocumentElement, 1] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2534 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 33 [foreignDoc.h ead, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2535 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 34 [foreignDoc.b ody, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2536 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2537 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2538 "
2539 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2540 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2541 "
2542 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 37 [paras[0], 2]
2543 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2544 </p> but got Text node "Qrstuvwx"
2545 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <p id="b" style="display:none">Ijklmnop
2546 </p> but got Text node "Qrstuvwx"
2547 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 40 [paras[1], 2]
2548 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 41 [detachedPara 1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2549 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 42 [detachedPara 1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2550 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2551 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2552 "
2553 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2554 </p><p id="b" s... but got Text node "Qrstuvwx"
2555 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 45 [document, -1 ]
2556 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to expected Documen t node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2557 "
2558 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to expected Documen t node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2559 "
2560 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to expected Documen t node with 2 children but got Text node "Qrstuvwx"
2561 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 49 [document, 3]
2562 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 50 [comment, -1]
2563 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2564 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2565 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 53 [comment, 96]
2566 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2567 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2568 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 56 [foreignComme nt, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2569 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 57 [foreignTextN ode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2570 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 58 [foreignTextN ode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2571 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 59 [xmlDoc, -1]
2572 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 60 [xmlDoc, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2573 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 61 [xmlDoc, 1] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2574 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 62 [xmlDoc, 5] a ssert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is nega tive or greater than the node's length function "function () {
2575 selection.collapse(point[0], point[1]);
2576 }" did not throw
2577 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2578 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2579 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 65 [processingIn struction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2580 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 66 [processingIn struction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2581 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 67 [processingIn struction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2582 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 68 [detachedText Node, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2583 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 69 [detachedText Node, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2584 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 70 [detachedFore ignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2585 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 71 [detachedFore ignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2586 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 72 [detachedXmlT extNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
2587 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 73 [detachedXmlT extNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
2588 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 74 [detachedProc essingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2589 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 75 [detachedComm ent, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2590 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 76 [detachedComm ent, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
2591 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 77 [detachedFore ignComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2592 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 78 [detachedFore ignComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2593 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 79 [detachedXmlC omment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
2594 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2595 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 81 [foreignDocfr ag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
2596 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2597 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 83 [doctype, 0]
2598 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 84 [doctype, -17 ] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2599 selection.collapse(point[0], point[1]);
2600 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2601 PASS Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 85 [doctype, 1]
2602 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 86 [foreignDocty pe, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2603 selection.collapse(point[0], point[1]);
2604 }" did not throw
2605 FAIL Range 46 [detachedTextNode, 0, detachedTextNode, 8], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the nod e is a DocumentType function "function () {
2606 selection.collapse(point[0], point[1]);
2607 }" did not throw
2608 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 0 [paras[0].firstChild, -1]
2609 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 1 [paras[0].firstChild, 0]
2610 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we col lapse()d to expected 1 but got 2
2611 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 3 [paras[0].firstChild, 2]
2612 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 4 [paras[0].firstChild, 8]
2613 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we col lapse()d to expected 9 but got 10
2614 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 6 [paras[0].firstChild, 10]
2615 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 7 [paras[0].firstChild, 65535]
2616 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 8 [paras[1].firstChild, -1]
2617 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Ijklmnop
2618 " but got Text node "Qrstuvwx"
2619 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2620 " but got Text node "Qrstuvwx"
2621 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2622 " but got Text node "Qrstuvwx"
2623 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2624 " but got Text node "Qrstuvwx"
2625 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2626 " but got Text node "Qrstuvwx"
2627 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 14 [paras[1].firstChild, 10]
2628 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 15 [paras[1].firstChild, 65535]
2629 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2630 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2631 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2632 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when col lapse()ing if the offset is negative or greater than the node's length function "function () {
2633 selection.collapse(point[0], point[1]);
2634 }" did not throw
2635 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2636 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2637 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2638 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when coll apse()ing if the offset is negative or greater than the node's length function " function () {
2639 selection.collapse(point[0], point[1]);
2640 }" did not throw
2641 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 24 [document.documentElement, -1]
2642 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2643 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2644 "
2645 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2646 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2647 "
2648 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2649 <me... but got Text node "Qrstuvwx"
2650 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 28 [document.documentElement, 7]
2651 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
2652 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2653 "
2654 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2655 </p><p id... but got Text node "Qrstuvwx"
2656 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2657 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2658 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2659 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2660 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2661 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2662 "
2663 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2664 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2665 "
2666 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 37 [paras[0], 2]
2667 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="b" style="display:none">Ijklmnop
2668 </p> but got Text node "Qrstuvwx"
2669 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="b" style="display:none">Ijklmnop
2670 </p> but got Text node "Qrstuvwx"
2671 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 40 [paras[1], 2]
2672 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2673 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2674 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2675 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2676 "
2677 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2678 </p><p id="b" s... but got Text node "Qrstuvwx"
2679 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 45 [document, -1]
2680 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2681 "
2682 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2683 "
2684 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Qrstuvwx"
2685 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 49 [document, 3]
2686 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 50 [comment, -1]
2687 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2688 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2689 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 53 [comment, 96]
2690 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2691 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2692 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2693 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2694 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2695 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 59 [xmlDoc, -1]
2696 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2697 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2698 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2699 selection.collapse(point[0], point[1]);
2700 }" did not throw
2701 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2702 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2703 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2704 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2705 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2706 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2707 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2708 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2709 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2710 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2711 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2712 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
2713 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2714 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2715 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2716 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2717 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2718 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2719 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2720 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2721 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 83 [doctype, 0]
2722 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()i ng if the node is a DocumentType function "function () {
2723 selection.collapse(point[0], point[1]);
2724 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2725 PASS Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 85 [doctype, 1]
2726 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collap se()ing if the node is a DocumentType function "function () {
2727 selection.collapse(point[0], point[1]);
2728 }" did not throw
2729 FAIL Range 47 [detachedForeignTextNode, 7, detachedForeignTextNode, 7], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
2730 selection.collapse(point[0], point[1]);
2731 }" did not throw
2732 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 0 [paras[0].firstChild, -1]
2733 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 1 [paras[0].firstChild, 0]
2734 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we col lapse()d to expected 1 but got 2
2735 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 3 [paras[0].firstChild, 2]
2736 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 4 [paras[0].firstChild, 8]
2737 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we col lapse()d to expected 9 but got 10
2738 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 6 [paras[0].firstChild, 10]
2739 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 7 [paras[0].firstChild, 65535]
2740 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 8 [paras[1].firstChild, -1]
2741 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Ijklmnop
2742 " but got Text node "Qrstuvwx"
2743 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2744 " but got Text node "Qrstuvwx"
2745 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2746 " but got Text node "Qrstuvwx"
2747 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2748 " but got Text node "Qrstuvwx"
2749 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2750 " but got Text node "Qrstuvwx"
2751 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 14 [paras[1].firstChild, 10]
2752 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 15 [paras[1].firstChild, 65535]
2753 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2754 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2755 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2756 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when col lapse()ing if the offset is negative or greater than the node's length function "function () {
2757 selection.collapse(point[0], point[1]);
2758 }" did not throw
2759 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2760 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2761 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2762 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when coll apse()ing if the offset is negative or greater than the node's length function " function () {
2763 selection.collapse(point[0], point[1]);
2764 }" did not throw
2765 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 24 [document.documentElement, -1]
2766 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 25 [document.documentElement, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2767 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2768 "
2769 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 26 [document.documentElement, 1] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2770 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2771 "
2772 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 27 [document.documentElement, 2] assert_equals: focusNode must equal the node we c ollapse()d to expected Element node <html><head><title>Selection.collapse() test s</title>
2773 <me... but got Text node "Qrstuvwx"
2774 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 28 [document.documentElement, 7]
2775 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
2776 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2777 "
2778 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2779 </p><p id... but got Text node "Qrstuvwx"
2780 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2781 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2782 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2783 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2784 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 35 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2785 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2786 "
2787 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 36 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2788 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2789 "
2790 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 37 [paras[0], 2]
2791 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 38 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="b" style="display:none">Ijklmnop
2792 </p> but got Text node "Qrstuvwx"
2793 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 39 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <p id="b" style="display:none">Ijklmnop
2794 </p> but got Text node "Qrstuvwx"
2795 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 40 [paras[1], 2]
2796 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2797 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2798 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2799 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2800 "
2801 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2802 </p><p id="b" s... but got Text node "Qrstuvwx"
2803 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 45 [document, -1]
2804 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 46 [document, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2805 "
2806 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 47 [document, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2807 "
2808 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 48 [document, 2] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 2 children but got Text node "Qrstuvwx"
2809 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 49 [document, 3]
2810 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 50 [comment, -1]
2811 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2812 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2813 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 53 [comment, 96]
2814 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2815 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2816 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2817 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2818 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2819 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 59 [xmlDoc, -1]
2820 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2821 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2822 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
2823 selection.collapse(point[0], point[1]);
2824 }" did not throw
2825 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2826 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2827 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2828 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2829 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2830 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2831 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2832 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2833 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2834 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2835 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2836 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
2837 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2838 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2839 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2840 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2841 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2842 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2843 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2844 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2845 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 83 [doctype, 0]
2846 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()i ng if the node is a DocumentType function "function () {
2847 selection.collapse(point[0], point[1]);
2848 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2849 PASS Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 85 [doctype, 1]
2850 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collap se()ing if the node is a DocumentType function "function () {
2851 selection.collapse(point[0], point[1]);
2852 }" did not throw
2853 FAIL Range 48 [detachedForeignTextNode, 0, detachedForeignTextNode, 8], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
2854 selection.collapse(point[0], point[1]);
2855 }" did not throw
2856 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 0 [paras[0 ].firstChild, -1]
2857 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 1 [paras[0 ].firstChild, 0]
2858 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 2 [paras[0 ].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
2859 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 3 [paras[0 ].firstChild, 2]
2860 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 4 [paras[0 ].firstChild, 8]
2861 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 5 [paras[0 ].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
2862 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 6 [paras[0 ].firstChild, 10]
2863 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 7 [paras[0 ].firstChild, 65535]
2864 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 8 [paras[1 ].firstChild, -1]
2865 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 9 [paras[1 ].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2866 " but got Text node "Qrstuvwx"
2867 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 10 [paras[ 1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2868 " but got Text node "Qrstuvwx"
2869 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 11 [paras[ 1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2870 " but got Text node "Qrstuvwx"
2871 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 12 [paras[ 1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2872 " but got Text node "Qrstuvwx"
2873 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 13 [paras[ 1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2874 " but got Text node "Qrstuvwx"
2875 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 14 [paras[ 1].firstChild, 10]
2876 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 15 [paras[ 1].firstChild, 65535]
2877 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 16 [detach edPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2878 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 17 [detach edPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2879 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 18 [detach edPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2880 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 19 [detach edPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()i ng if the offset is negative or greater than the node's length function "functio n () {
2881 selection.collapse(point[0], point[1]);
2882 }" did not throw
2883 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 20 [foreig nPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2884 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 21 [foreig nPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2885 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 22 [foreig nPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2886 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 23 [foreig nPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()in g if the offset is negative or greater than the node's length function "function () {
2887 selection.collapse(point[0], point[1]);
2888 }" did not throw
2889 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 24 [docume nt.documentElement, -1]
2890 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 25 [docume nt.documentElement, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
2891 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2892 "
2893 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 26 [docume nt.documentElement, 1] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
2894 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2895 "
2896 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 27 [docume nt.documentElement, 2] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
2897 <me... but got Text node "Qrstuvwx"
2898 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 28 [docume nt.documentElement, 7]
2899 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 29 [docume nt.head, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <head><title>Selection.collapse() tests</title>
2900 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2901 "
2902 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 30 [docume nt.body, 3] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2903 </p><p id... but got Text node "Qrstuvwx"
2904 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 31 [foreig nDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2905 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 32 [foreig nDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2906 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 33 [foreig nDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2907 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 34 [foreig nDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2908 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 35 [paras[ 0], 0] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2909 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2910 "
2911 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 36 [paras[ 0], 1] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2912 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2913 "
2914 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 37 [paras[ 0], 2]
2915 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 38 [paras[ 1], 0] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="b" style="display:none">Ijklmnop
2916 </p> but got Text node "Qrstuvwx"
2917 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 39 [paras[ 1], 1] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="b" style="display:none">Ijklmnop
2918 </p> but got Text node "Qrstuvwx"
2919 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 40 [paras[ 1], 2]
2920 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 41 [detach edPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
2921 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 42 [detach edPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
2922 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 43 [testDi v, 0] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2923 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2924 "
2925 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 44 [testDi v, 3] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2926 </p><p id="b" s... but got Text node "Qrstuvwx"
2927 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 45 [docume nt, -1]
2928 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 46 [docume nt, 0] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2929 "
2930 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 47 [docume nt, 1] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2931 "
2932 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 48 [docume nt, 2] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Qrstuvwx"
2933 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 49 [docume nt, 3]
2934 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 50 [commen t, -1]
2935 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 51 [commen t, 0] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2936 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 52 [commen t, 4] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2937 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 53 [commen t, 96]
2938 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 54 [foreig nDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2939 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 55 [foreig nDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2940 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 56 [foreig nComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2941 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 57 [foreig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2942 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 58 [foreig nTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2943 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 59 [xmlDoc , -1]
2944 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 60 [xmlDoc , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2945 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 61 [xmlDoc , 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2946 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 62 [xmlDoc , 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset i s negative or greater than the node's length function "function () {
2947 selection.collapse(point[0], point[1]);
2948 }" did not throw
2949 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 63 [xmlCom ment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2950 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 64 [xmlCom ment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2951 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 65 [proces singInstruction, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2952 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 66 [proces singInstruction, 5] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2953 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 67 [proces singInstruction, 9] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2954 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 68 [detach edTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2955 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 69 [detach edTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2956 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 70 [detach edForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2957 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 71 [detach edForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2958 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 72 [detach edXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
2959 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 73 [detach edXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
2960 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 74 [detach edProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2961 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 75 [detach edComment, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2962 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 76 [detach edComment, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2963 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 77 [detach edForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2964 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 78 [detach edForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2965 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 79 [detach edXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2966 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 80 [docfra g, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2967 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 81 [foreig nDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2968 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 82 [xmlDoc frag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
2969 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 83 [doctyp e, 0]
2970 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 84 [doctyp e, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if th e node is a DocumentType function "function () {
2971 selection.collapse(point[0], point[1]);
2972 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
2973 PASS Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 85 [doctyp e, 1]
2974 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 86 [foreig nDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
2975 selection.collapse(point[0], point[1]);
2976 }" did not throw
2977 FAIL Range 49 [detachedXmlTextNode, 7, detachedXmlTextNode, 7], point 87 [xmlDoc type, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if t he node is a DocumentType function "function () {
2978 selection.collapse(point[0], point[1]);
2979 }" did not throw
2980 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 0 [paras[0 ].firstChild, -1]
2981 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 1 [paras[0 ].firstChild, 0]
2982 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 2 [paras[0 ].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
2983 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 3 [paras[0 ].firstChild, 2]
2984 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 4 [paras[0 ].firstChild, 8]
2985 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 5 [paras[0 ].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
2986 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 6 [paras[0 ].firstChild, 10]
2987 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 7 [paras[0 ].firstChild, 65535]
2988 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 8 [paras[1 ].firstChild, -1]
2989 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 9 [paras[1 ].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2990 " but got Text node "Qrstuvwx"
2991 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 10 [paras[ 1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2992 " but got Text node "Qrstuvwx"
2993 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 11 [paras[ 1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2994 " but got Text node "Qrstuvwx"
2995 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 12 [paras[ 1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2996 " but got Text node "Qrstuvwx"
2997 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 13 [paras[ 1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
2998 " but got Text node "Qrstuvwx"
2999 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 14 [paras[ 1].firstChild, 10]
3000 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 15 [paras[ 1].firstChild, 65535]
3001 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 16 [detach edPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3002 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 17 [detach edPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3003 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 18 [detach edPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3004 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 19 [detach edPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()i ng if the offset is negative or greater than the node's length function "functio n () {
3005 selection.collapse(point[0], point[1]);
3006 }" did not throw
3007 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 20 [foreig nPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
3008 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 21 [foreig nPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
3009 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 22 [foreig nPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
3010 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 23 [foreig nPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()in g if the offset is negative or greater than the node's length function "function () {
3011 selection.collapse(point[0], point[1]);
3012 }" did not throw
3013 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 24 [docume nt.documentElement, -1]
3014 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 25 [docume nt.documentElement, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
3015 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3016 "
3017 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 26 [docume nt.documentElement, 1] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
3018 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3019 "
3020 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 27 [docume nt.documentElement, 2] assert_equals: focusNode must equal the node we collapse( )d to expected Element node <html><head><title>Selection.collapse() tests</title >
3021 <me... but got Text node "Qrstuvwx"
3022 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 28 [docume nt.documentElement, 7]
3023 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 29 [docume nt.head, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <head><title>Selection.collapse() tests</title>
3024 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3025 "
3026 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 30 [docume nt.body, 3] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3027 </p><p id... but got Text node "Qrstuvwx"
3028 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 31 [foreig nDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3029 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 32 [foreig nDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3030 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 33 [foreig nDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3031 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 34 [foreig nDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3032 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 35 [paras[ 0], 0] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3033 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3034 "
3035 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 36 [paras[ 0], 1] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3036 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3037 "
3038 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 37 [paras[ 0], 2]
3039 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 38 [paras[ 1], 0] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="b" style="display:none">Ijklmnop
3040 </p> but got Text node "Qrstuvwx"
3041 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 39 [paras[ 1], 1] assert_equals: focusNode must equal the node we collapse()d to expected E lement node <p id="b" style="display:none">Ijklmnop
3042 </p> but got Text node "Qrstuvwx"
3043 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 40 [paras[ 1], 2]
3044 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 41 [detach edPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3045 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 42 [detach edPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3046 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 43 [testDi v, 0] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3047 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3048 "
3049 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 44 [testDi v, 3] assert_equals: focusNode must equal the node we collapse()d to expected El ement node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3050 </p><p id="b" s... but got Text node "Qrstuvwx"
3051 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 45 [docume nt, -1]
3052 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 46 [docume nt, 0] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3053 "
3054 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 47 [docume nt, 1] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3055 "
3056 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 48 [docume nt, 2] assert_equals: focusNode must equal the node we collapse()d to expected D ocument node with 2 children but got Text node "Qrstuvwx"
3057 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 49 [docume nt, 3]
3058 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 50 [commen t, -1]
3059 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 51 [commen t, 0] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3060 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 52 [commen t, 4] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3061 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 53 [commen t, 96]
3062 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 54 [foreig nDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3063 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 55 [foreig nDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3064 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 56 [foreig nComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3065 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 57 [foreig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3066 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 58 [foreig nTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3067 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 59 [xmlDoc , -1]
3068 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 60 [xmlDoc , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3069 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 61 [xmlDoc , 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3070 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 62 [xmlDoc , 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset i s negative or greater than the node's length function "function () {
3071 selection.collapse(point[0], point[1]);
3072 }" did not throw
3073 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 63 [xmlCom ment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3074 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 64 [xmlCom ment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3075 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 65 [proces singInstruction, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3076 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 66 [proces singInstruction, 5] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3077 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 67 [proces singInstruction, 9] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3078 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 68 [detach edTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3079 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 69 [detach edTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3080 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 70 [detach edForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
3081 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 71 [detach edForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
3082 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 72 [detach edXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3083 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 73 [detach edXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3084 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 74 [detach edProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3085 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 75 [detach edComment, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3086 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 76 [detach edComment, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3087 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 77 [detach edForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3088 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 78 [detach edForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3089 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 79 [detach edXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3090 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 80 [docfra g, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3091 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 81 [foreig nDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3092 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 82 [xmlDoc frag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3093 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 83 [doctyp e, 0]
3094 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 84 [doctyp e, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if th e node is a DocumentType function "function () {
3095 selection.collapse(point[0], point[1]);
3096 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3097 PASS Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 85 [doctyp e, 1]
3098 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 86 [foreig nDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3099 selection.collapse(point[0], point[1]);
3100 }" did not throw
3101 FAIL Range 50 [detachedXmlTextNode, 0, detachedXmlTextNode, 8], point 87 [xmlDoc type, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if t he node is a DocumentType function "function () {
3102 selection.collapse(point[0], point[1]);
3103 }" did not throw
3104 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 0 [paras[0].firstC hild, -1]
3105 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 1 [paras[0].firstC hild, 0]
3106 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 2 [paras[0].firstC hild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 1 but got 2
3107 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 3 [paras[0].firstC hild, 2]
3108 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 4 [paras[0].firstC hild, 8]
3109 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 5 [paras[0].firstC hild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 9 but got 10
3110 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 6 [paras[0].firstC hild, 10]
3111 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 7 [paras[0].firstC hild, 65535]
3112 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 8 [paras[1].firstC hild, -1]
3113 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 9 [paras[1].firstC hild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3114 " but got Text node "Qrstuvwx"
3115 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 10 [paras[1].first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3116 " but got Text node "Qrstuvwx"
3117 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 11 [paras[1].first Child, 2] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3118 " but got Text node "Qrstuvwx"
3119 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 12 [paras[1].first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3120 " but got Text node "Qrstuvwx"
3121 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 13 [paras[1].first Child, 9] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3122 " but got Text node "Qrstuvwx"
3123 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 14 [paras[1].first Child, 10]
3124 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 15 [paras[1].first Child, 65535]
3125 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 16 [detachedPara1. firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3126 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 17 [detachedPara1. firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3127 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 18 [detachedPara1. firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3128 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 19 [detachedPara1. firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if th e offset is negative or greater than the node's length function "function () {
3129 selection.collapse(point[0], point[1]);
3130 }" did not throw
3131 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 20 [foreignPara1.f irstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3132 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 21 [foreignPara1.f irstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3133 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 22 [foreignPara1.f irstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3134 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 23 [foreignPara1.f irstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3135 selection.collapse(point[0], point[1]);
3136 }" did not throw
3137 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 24 [document.docum entElement, -1]
3138 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 25 [document.docum entElement, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3139 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3140 "
3141 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 26 [document.docum entElement, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3142 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3143 "
3144 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 27 [document.docum entElement, 2] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3145 <me... but got Text node "Qrstuvwx"
3146 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 28 [document.docum entElement, 7]
3147 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <head><title>Selection.collapse() tests</title>
3148 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3149 "
3150 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3151 </p><p id... but got Text node "Qrstuvwx"
3152 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 31 [foreignDoc.doc umentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3153 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 32 [foreignDoc.doc umentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3154 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 33 [foreignDoc.hea d, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3155 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 34 [foreignDoc.bod y, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3156 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 35 [paras[0], 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3157 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3158 "
3159 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 36 [paras[0], 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3160 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3161 "
3162 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 37 [paras[0], 2]
3163 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 38 [paras[1], 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="b" style="display:none">Ijklmnop
3164 </p> but got Text node "Qrstuvwx"
3165 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 39 [paras[1], 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="b" style="display:none">Ijklmnop
3166 </p> but got Text node "Qrstuvwx"
3167 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 40 [paras[1], 2]
3168 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3169 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3170 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 43 [testDiv, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3171 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3172 "
3173 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 44 [testDiv, 3] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3174 </p><p id="b" s... but got Text node "Qrstuvwx"
3175 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 45 [document, -1]
3176 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 46 [document, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3177 "
3178 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 47 [document, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3179 "
3180 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 48 [document, 2] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
3181 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 49 [document, 3]
3182 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 50 [comment, -1]
3183 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 51 [comment, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3184 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 52 [comment, 4] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3185 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 53 [comment, 96]
3186 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3187 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3188 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 56 [foreignComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3189 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 57 [foreignTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3190 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 58 [foreignTextNod e, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3191 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 59 [xmlDoc, -1]
3192 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 60 [xmlDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3193 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 61 [xmlDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3194 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 62 [xmlDoc, 5] ass ert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negati ve or greater than the node's length function "function () {
3195 selection.collapse(point[0], point[1]);
3196 }" did not throw
3197 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3198 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3199 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 65 [processingInst ruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3200 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 66 [processingInst ruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3201 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 67 [processingInst ruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3202 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 68 [detachedTextNo de, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3203 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 69 [detachedTextNo de, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3204 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 70 [detachedForeig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3205 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 71 [detachedForeig nTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3206 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 72 [detachedXmlTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3207 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 73 [detachedXmlTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3208 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 74 [detachedProces singInstruction, 12] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3209 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 75 [detachedCommen t, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3210 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 76 [detachedCommen t, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3211 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 77 [detachedForeig nComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3212 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 78 [detachedForeig nComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3213 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 79 [detachedXmlCom ment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3214 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 80 [docfrag, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3215 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 81 [foreignDocfrag , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3216 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3217 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 83 [doctype, 0]
3218 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node i s a DocumentType function "function () {
3219 selection.collapse(point[0], point[1]);
3220 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3221 PASS Range 51 [detachedComment, 3, detachedComment, 4], point 85 [doctype, 1]
3222 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 86 [foreignDoctype , 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the n ode is a DocumentType function "function () {
3223 selection.collapse(point[0], point[1]);
3224 }" did not throw
3225 FAIL Range 51 [detachedComment, 3, detachedComment, 4], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3226 selection.collapse(point[0], point[1]);
3227 }" did not throw
3228 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 0 [paras[0].firstC hild, -1]
3229 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 1 [paras[0].firstC hild, 0]
3230 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 2 [paras[0].firstC hild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 1 but got 2
3231 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 3 [paras[0].firstC hild, 2]
3232 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 4 [paras[0].firstC hild, 8]
3233 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 5 [paras[0].firstC hild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 9 but got 10
3234 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 6 [paras[0].firstC hild, 10]
3235 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 7 [paras[0].firstC hild, 65535]
3236 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 8 [paras[1].firstC hild, -1]
3237 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 9 [paras[1].firstC hild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3238 " but got Text node "Qrstuvwx"
3239 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 10 [paras[1].first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3240 " but got Text node "Qrstuvwx"
3241 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 11 [paras[1].first Child, 2] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3242 " but got Text node "Qrstuvwx"
3243 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 12 [paras[1].first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3244 " but got Text node "Qrstuvwx"
3245 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 13 [paras[1].first Child, 9] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3246 " but got Text node "Qrstuvwx"
3247 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 14 [paras[1].first Child, 10]
3248 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 15 [paras[1].first Child, 65535]
3249 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 16 [detachedPara1. firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3250 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 17 [detachedPara1. firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3251 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 18 [detachedPara1. firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3252 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 19 [detachedPara1. firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if th e offset is negative or greater than the node's length function "function () {
3253 selection.collapse(point[0], point[1]);
3254 }" did not throw
3255 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 20 [foreignPara1.f irstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3256 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 21 [foreignPara1.f irstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3257 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 22 [foreignPara1.f irstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3258 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 23 [foreignPara1.f irstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3259 selection.collapse(point[0], point[1]);
3260 }" did not throw
3261 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 24 [document.docum entElement, -1]
3262 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 25 [document.docum entElement, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3263 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3264 "
3265 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 26 [document.docum entElement, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3266 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3267 "
3268 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 27 [document.docum entElement, 2] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <html><head><title>Selection.collapse() tests</title>
3269 <me... but got Text node "Qrstuvwx"
3270 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 28 [document.docum entElement, 7]
3271 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <head><title>Selection.collapse() tests</title>
3272 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3273 "
3274 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 30 [document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3275 </p><p id... but got Text node "Qrstuvwx"
3276 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 31 [foreignDoc.doc umentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3277 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 32 [foreignDoc.doc umentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3278 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 33 [foreignDoc.hea d, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3279 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 34 [foreignDoc.bod y, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3280 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 35 [paras[0], 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3281 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3282 "
3283 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 36 [paras[0], 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3284 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3285 "
3286 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 37 [paras[0], 2]
3287 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 38 [paras[1], 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="b" style="display:none">Ijklmnop
3288 </p> but got Text node "Qrstuvwx"
3289 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 39 [paras[1], 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <p id="b" style="display:none">Ijklmnop
3290 </p> but got Text node "Qrstuvwx"
3291 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 40 [paras[1], 2]
3292 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3293 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3294 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 43 [testDiv, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3295 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3296 "
3297 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 44 [testDiv, 3] as sert_equals: focusNode must equal the node we collapse()d to expected Element no de <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3298 </p><p id="b" s... but got Text node "Qrstuvwx"
3299 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 45 [document, -1]
3300 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 46 [document, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3301 "
3302 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 47 [document, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3303 "
3304 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 48 [document, 2] a ssert_equals: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
3305 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 49 [document, 3]
3306 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 50 [comment, -1]
3307 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 51 [comment, 0] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3308 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 52 [comment, 4] as sert_equals: focusNode must equal the node we collapse()d to expected Comment no de <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3309 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 53 [comment, 96]
3310 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3311 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3312 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 56 [foreignComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3313 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 57 [foreignTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3314 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 58 [foreignTextNod e, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3315 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 59 [xmlDoc, -1]
3316 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 60 [xmlDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3317 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 61 [xmlDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3318 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 62 [xmlDoc, 5] ass ert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negati ve or greater than the node's length function "function () {
3319 selection.collapse(point[0], point[1]);
3320 }" did not throw
3321 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3322 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3323 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 65 [processingInst ruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3324 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 66 [processingInst ruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3325 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 67 [processingInst ruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3326 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 68 [detachedTextNo de, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3327 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 69 [detachedTextNo de, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3328 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 70 [detachedForeig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3329 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 71 [detachedForeig nTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3330 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 72 [detachedXmlTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3331 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 73 [detachedXmlTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3332 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 74 [detachedProces singInstruction, 12] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3333 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 75 [detachedCommen t, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3334 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 76 [detachedCommen t, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3335 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 77 [detachedForeig nComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3336 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 78 [detachedForeig nComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3337 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 79 [detachedXmlCom ment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3338 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 80 [docfrag, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3339 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 81 [foreignDocfrag , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3340 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3341 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 83 [doctype, 0]
3342 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node i s a DocumentType function "function () {
3343 selection.collapse(point[0], point[1]);
3344 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3345 PASS Range 52 [detachedComment, 5, detachedComment, 5], point 85 [doctype, 1]
3346 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 86 [foreignDoctype , 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the n ode is a DocumentType function "function () {
3347 selection.collapse(point[0], point[1]);
3348 }" did not throw
3349 FAIL Range 52 [detachedComment, 5, detachedComment, 5], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3350 selection.collapse(point[0], point[1]);
3351 }" did not throw
3352 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 0 [p aras[0].firstChild, -1]
3353 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 1 [p aras[0].firstChild, 0]
3354 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 2 [p aras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we colla pse()d to expected 1 but got 2
3355 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 3 [p aras[0].firstChild, 2]
3356 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 4 [p aras[0].firstChild, 8]
3357 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 5 [p aras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we colla pse()d to expected 9 but got 10
3358 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 6 [p aras[0].firstChild, 10]
3359 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 7 [p aras[0].firstChild, 65535]
3360 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 8 [p aras[1].firstChild, -1]
3361 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 9 [p aras[1].firstChild, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Ijklmnop
3362 " but got Text node "Qrstuvwx"
3363 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 10 [ paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3364 " but got Text node "Qrstuvwx"
3365 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 11 [ paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3366 " but got Text node "Qrstuvwx"
3367 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 12 [ paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3368 " but got Text node "Qrstuvwx"
3369 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 13 [ paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3370 " but got Text node "Qrstuvwx"
3371 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 14 [ paras[1].firstChild, 10]
3372 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 15 [ paras[1].firstChild, 65535]
3373 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 16 [ detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3374 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 17 [ detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3375 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 18 [ detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3376 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 19 [ detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when colla pse()ing if the offset is negative or greater than the node's length function "f unction () {
3377 selection.collapse(point[0], point[1]);
3378 }" did not throw
3379 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 20 [ foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3380 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 21 [ foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3381 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 22 [ foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3382 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 23 [ foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collap se()ing if the offset is negative or greater than the node's length function "fu nction () {
3383 selection.collapse(point[0], point[1]);
3384 }" did not throw
3385 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 24 [ document.documentElement, -1]
3386 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 25 [ document.documentElement, 0] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3387 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3388 "
3389 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 26 [ document.documentElement, 1] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3390 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3391 "
3392 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 27 [ document.documentElement, 2] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3393 <me... but got Text node "Qrstuvwx"
3394 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 28 [ document.documentElement, 7]
3395 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 29 [ document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
3396 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3397 "
3398 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 30 [ document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3399 </p><p id... but got Text node "Qrstuvwx"
3400 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 31 [ foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3401 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 32 [ foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3402 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 33 [ foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3403 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 34 [ foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3404 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 35 [ paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3405 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3406 "
3407 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 36 [ paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3408 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3409 "
3410 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 37 [ paras[0], 2]
3411 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 38 [ paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="b" style="display:none">Ijklmnop
3412 </p> but got Text node "Qrstuvwx"
3413 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 39 [ paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="b" style="display:none">Ijklmnop
3414 </p> but got Text node "Qrstuvwx"
3415 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 40 [ paras[1], 2]
3416 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 41 [ detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3417 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 42 [ detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3418 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 43 [ testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3419 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3420 "
3421 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 44 [ testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3422 </p><p id="b" s... but got Text node "Qrstuvwx"
3423 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 45 [ document, -1]
3424 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 46 [ document, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3425 "
3426 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 47 [ document, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3427 "
3428 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 48 [ document, 2] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Qrstuvwx"
3429 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 49 [ document, 3]
3430 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 50 [ comment, -1]
3431 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 51 [ comment, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3432 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 52 [ comment, 4] assert_equals: focusNode must equal the node we collapse()d to expec ted Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3433 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 53 [ comment, 96]
3434 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 54 [ foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3435 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 55 [ foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3436 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 56 [ foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3437 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 57 [ foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3438 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 58 [ foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3439 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 59 [ xmlDoc, -1]
3440 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 60 [ xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3441 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 61 [ xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3442 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 62 [ xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the of fset is negative or greater than the node's length function "function () {
3443 selection.collapse(point[0], point[1]);
3444 }" did not throw
3445 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 63 [ xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3446 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 64 [ xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3447 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 65 [ processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3448 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 66 [ processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3449 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 67 [ processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3450 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 68 [ detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3451 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 69 [ detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3452 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 70 [ detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3453 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 71 [ detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3454 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 72 [ detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
3455 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 73 [ detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
3456 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 74 [ detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
3457 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 75 [ detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3458 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 76 [ detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3459 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 77 [ detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3460 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 78 [ detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3461 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 79 [ detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3462 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 80 [ docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3463 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 81 [ foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3464 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 82 [ xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3465 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 83 [ doctype, 0]
3466 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 84 [ doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3467 selection.collapse(point[0], point[1]);
3468 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3469 PASS Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 85 [ doctype, 1]
3470 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 86 [ foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
3471 selection.collapse(point[0], point[1]);
3472 }" did not throw
3473 FAIL Range 53 [detachedForeignComment, 0, detachedForeignComment, 1], point 87 [ xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()in g if the node is a DocumentType function "function () {
3474 selection.collapse(point[0], point[1]);
3475 }" did not throw
3476 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 0 [p aras[0].firstChild, -1]
3477 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 1 [p aras[0].firstChild, 0]
3478 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 2 [p aras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we colla pse()d to expected 1 but got 2
3479 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 3 [p aras[0].firstChild, 2]
3480 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 4 [p aras[0].firstChild, 8]
3481 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 5 [p aras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we colla pse()d to expected 9 but got 10
3482 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 6 [p aras[0].firstChild, 10]
3483 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 7 [p aras[0].firstChild, 65535]
3484 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 8 [p aras[1].firstChild, -1]
3485 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 9 [p aras[1].firstChild, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Ijklmnop
3486 " but got Text node "Qrstuvwx"
3487 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 10 [ paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3488 " but got Text node "Qrstuvwx"
3489 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 11 [ paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3490 " but got Text node "Qrstuvwx"
3491 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 12 [ paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3492 " but got Text node "Qrstuvwx"
3493 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 13 [ paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse ()d to expected Text node "Ijklmnop
3494 " but got Text node "Qrstuvwx"
3495 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 14 [ paras[1].firstChild, 10]
3496 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 15 [ paras[1].firstChild, 65535]
3497 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 16 [ detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3498 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 17 [ detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3499 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 18 [ detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3500 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 19 [ detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when colla pse()ing if the offset is negative or greater than the node's length function "f unction () {
3501 selection.collapse(point[0], point[1]);
3502 }" did not throw
3503 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 20 [ foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3504 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 21 [ foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3505 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 22 [ foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3506 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 23 [ foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collap se()ing if the offset is negative or greater than the node's length function "fu nction () {
3507 selection.collapse(point[0], point[1]);
3508 }" did not throw
3509 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 24 [ document.documentElement, -1]
3510 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 25 [ document.documentElement, 0] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3511 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3512 "
3513 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 26 [ document.documentElement, 1] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3514 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3515 "
3516 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 27 [ document.documentElement, 2] assert_equals: focusNode must equal the node we col lapse()d to expected Element node <html><head><title>Selection.collapse() tests< /title>
3517 <me... but got Text node "Qrstuvwx"
3518 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 28 [ document.documentElement, 7]
3519 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 29 [ document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
3520 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3521 "
3522 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 30 [ document.body, 3] assert_equals: focusNode must equal the node we collapse()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3523 </p><p id... but got Text node "Qrstuvwx"
3524 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 31 [ foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3525 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 32 [ foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3526 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 33 [ foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3527 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 34 [ foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3528 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 35 [ paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3529 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3530 "
3531 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 36 [ paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3532 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3533 "
3534 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 37 [ paras[0], 2]
3535 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 38 [ paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="b" style="display:none">Ijklmnop
3536 </p> but got Text node "Qrstuvwx"
3537 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 39 [ paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <p id="b" style="display:none">Ijklmnop
3538 </p> but got Text node "Qrstuvwx"
3539 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 40 [ paras[1], 2]
3540 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 41 [ detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3541 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 42 [ detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3542 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 43 [ testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3543 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3544 "
3545 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 44 [ testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3546 </p><p id="b" s... but got Text node "Qrstuvwx"
3547 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 45 [ document, -1]
3548 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 46 [ document, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3549 "
3550 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 47 [ document, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3551 "
3552 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 48 [ document, 2] assert_equals: focusNode must equal the node we collapse()d to expe cted Document node with 2 children but got Text node "Qrstuvwx"
3553 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 49 [ document, 3]
3554 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 50 [ comment, -1]
3555 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 51 [ comment, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3556 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 52 [ comment, 4] assert_equals: focusNode must equal the node we collapse()d to expec ted Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3557 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 53 [ comment, 96]
3558 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 54 [ foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3559 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 55 [ foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3560 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 56 [ foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3561 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 57 [ foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3562 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 58 [ foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3563 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 59 [ xmlDoc, -1]
3564 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 60 [ xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3565 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 61 [ xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3566 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 62 [ xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the of fset is negative or greater than the node's length function "function () {
3567 selection.collapse(point[0], point[1]);
3568 }" did not throw
3569 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 63 [ xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3570 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 64 [ xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3571 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 65 [ processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3572 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 66 [ processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3573 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 67 [ processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3574 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 68 [ detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3575 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 69 [ detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3576 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 70 [ detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3577 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 71 [ detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3578 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 72 [ detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
3579 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 73 [ detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
3580 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 74 [ detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
3581 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 75 [ detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3582 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 76 [ detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3583 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 77 [ detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3584 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 78 [ detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3585 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 79 [ detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3586 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 80 [ docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3587 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 81 [ foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3588 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 82 [ xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3589 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 83 [ doctype, 0]
3590 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 84 [ doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3591 selection.collapse(point[0], point[1]);
3592 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3593 PASS Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 85 [ doctype, 1]
3594 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 86 [ foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
3595 selection.collapse(point[0], point[1]);
3596 }" did not throw
3597 FAIL Range 54 [detachedForeignComment, 4, detachedForeignComment, 4], point 87 [ xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()in g if the node is a DocumentType function "function () {
3598 selection.collapse(point[0], point[1]);
3599 }" did not throw
3600 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 0 [paras[0]. firstChild, -1]
3601 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 1 [paras[0]. firstChild, 0]
3602 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 2 [paras[0]. firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d t o expected 1 but got 2
3603 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 3 [paras[0]. firstChild, 2]
3604 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 4 [paras[0]. firstChild, 8]
3605 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 5 [paras[0]. firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d t o expected 9 but got 10
3606 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 6 [paras[0]. firstChild, 10]
3607 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 7 [paras[0]. firstChild, 65535]
3608 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 8 [paras[1]. firstChild, -1]
3609 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 9 [paras[1]. firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "Ijklmnop
3610 " but got Text node "Qrstuvwx"
3611 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 10 [paras[1] .firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
3612 " but got Text node "Qrstuvwx"
3613 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 11 [paras[1] .firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
3614 " but got Text node "Qrstuvwx"
3615 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 12 [paras[1] .firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
3616 " but got Text node "Qrstuvwx"
3617 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 13 [paras[1] .firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
3618 " but got Text node "Qrstuvwx"
3619 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 14 [paras[1] .firstChild, 10]
3620 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 15 [paras[1] .firstChild, 65535]
3621 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 16 [detached Para1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3622 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 17 [detached Para1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3623 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 18 [detached Para1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3624 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 19 [detached Para1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3625 selection.collapse(point[0], point[1]);
3626 }" did not throw
3627 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 20 [foreignP ara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3628 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 21 [foreignP ara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3629 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 22 [foreignP ara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3630 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 23 [foreignP ara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function ( ) {
3631 selection.collapse(point[0], point[1]);
3632 }" did not throw
3633 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 24 [document .documentElement, -1]
3634 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 25 [document .documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
3635 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3636 "
3637 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 26 [document .documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
3638 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3639 "
3640 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 27 [document .documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tests</title>
3641 <me... but got Text node "Qrstuvwx"
3642 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 28 [document .documentElement, 7]
3643 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 29 [document .head, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <head><title>Selection.collapse() tests</title>
3644 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3645 "
3646 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 30 [document .body, 3] assert_equals: focusNode must equal the node we collapse()d to expecte d Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3647 </p><p id... but got Text node "Qrstuvwx"
3648 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 31 [foreignD oc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3649 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 32 [foreignD oc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3650 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 33 [foreignD oc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3651 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 34 [foreignD oc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3652 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 35 [paras[0] , 0] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3653 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3654 "
3655 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 36 [paras[0] , 1] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3656 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3657 "
3658 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 37 [paras[0] , 2]
3659 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 38 [paras[1] , 0] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <p id="b" style="display:none">Ijklmnop
3660 </p> but got Text node "Qrstuvwx"
3661 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 39 [paras[1] , 1] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <p id="b" style="display:none">Ijklmnop
3662 </p> but got Text node "Qrstuvwx"
3663 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 40 [paras[1] , 2]
3664 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 41 [detached Para1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3665 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 42 [detached Para1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3666 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3667 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3668 "
3669 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to expected Elem ent node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3670 </p><p id="b" s... but got Text node "Qrstuvwx"
3671 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 45 [document , -1]
3672 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 46 [document , 0] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3673 "
3674 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 47 [document , 1] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3675 "
3676 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 48 [document , 2] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 2 children but got Text node "Qrstuvwx"
3677 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 49 [document , 3]
3678 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 50 [comment, -1]
3679 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comm ent node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3680 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comm ent node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3681 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 53 [comment, 96]
3682 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 54 [foreignD oc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3683 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 55 [foreignD oc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3684 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 56 [foreignC omment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3685 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 57 [foreignT extNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3686 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 58 [foreignT extNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3687 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 59 [xmlDoc, -1]
3688 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3689 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3690 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3691 selection.collapse(point[0], point[1]);
3692 }" did not throw
3693 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 63 [xmlComme nt, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3694 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 64 [xmlComme nt, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3695 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 65 [processi ngInstruction, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3696 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 66 [processi ngInstruction, 5] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3697 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 67 [processi ngInstruction, 9] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
3698 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 68 [detached TextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3699 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 69 [detached TextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3700 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 70 [detached ForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3701 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 71 [detached ForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3702 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 72 [detached XmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
3703 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 73 [detached XmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
3704 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 74 [detached ProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3705 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 75 [detached Comment, 3] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3706 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 76 [detached Comment, 5] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3707 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 77 [detached ForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3708 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 78 [detached ForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3709 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 79 [detached XmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3710 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3711 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 81 [foreignD ocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3712 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 82 [xmlDocfr ag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3713 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 83 [doctype, 0]
3714 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3715 selection.collapse(point[0], point[1]);
3716 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3717 PASS Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 85 [doctype, 1]
3718 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 86 [foreignD octype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3719 selection.collapse(point[0], point[1]);
3720 }" did not throw
3721 FAIL Range 55 [detachedXmlComment, 2, detachedXmlComment, 6], point 87 [xmlDocty pe, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3722 selection.collapse(point[0], point[1]);
3723 }" did not throw
3724 PASS Range 56 [docfrag, 0, docfrag, 0], point 0 [paras[0].firstChild, -1]
3725 PASS Range 56 [docfrag, 0, docfrag, 0], point 1 [paras[0].firstChild, 0]
3726 FAIL Range 56 [docfrag, 0, docfrag, 0], point 2 [paras[0].firstChild, 1] assert_ equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3727 PASS Range 56 [docfrag, 0, docfrag, 0], point 3 [paras[0].firstChild, 2]
3728 PASS Range 56 [docfrag, 0, docfrag, 0], point 4 [paras[0].firstChild, 8]
3729 FAIL Range 56 [docfrag, 0, docfrag, 0], point 5 [paras[0].firstChild, 9] assert_ equals: focusOffset must equal the offset we collapse()d to expected 9 but got 1 0
3730 PASS Range 56 [docfrag, 0, docfrag, 0], point 6 [paras[0].firstChild, 10]
3731 PASS Range 56 [docfrag, 0, docfrag, 0], point 7 [paras[0].firstChild, 65535]
3732 PASS Range 56 [docfrag, 0, docfrag, 0], point 8 [paras[1].firstChild, -1]
3733 FAIL Range 56 [docfrag, 0, docfrag, 0], point 9 [paras[1].firstChild, 0] assert_ equals: focusNode must equal the node we collapse()d to expected Text node "Ijkl mnop
3734 " but got Text node "Qrstuvwx"
3735 FAIL Range 56 [docfrag, 0, docfrag, 0], point 10 [paras[1].firstChild, 1] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
3736 " but got Text node "Qrstuvwx"
3737 FAIL Range 56 [docfrag, 0, docfrag, 0], point 11 [paras[1].firstChild, 2] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
3738 " but got Text node "Qrstuvwx"
3739 FAIL Range 56 [docfrag, 0, docfrag, 0], point 12 [paras[1].firstChild, 8] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
3740 " but got Text node "Qrstuvwx"
3741 FAIL Range 56 [docfrag, 0, docfrag, 0], point 13 [paras[1].firstChild, 9] assert _equals: focusNode must equal the node we collapse()d to expected Text node "Ijk lmnop
3742 " but got Text node "Qrstuvwx"
3743 PASS Range 56 [docfrag, 0, docfrag, 0], point 14 [paras[1].firstChild, 10]
3744 PASS Range 56 [docfrag, 0, docfrag, 0], point 15 [paras[1].firstChild, 65535]
3745 FAIL Range 56 [docfrag, 0, docfrag, 0], point 16 [detachedPara1.firstChild, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3746 FAIL Range 56 [docfrag, 0, docfrag, 0], point 17 [detachedPara1.firstChild, 1] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3747 FAIL Range 56 [docfrag, 0, docfrag, 0], point 18 [detachedPara1.firstChild, 8] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3748 FAIL Range 56 [docfrag, 0, docfrag, 0], point 19 [detachedPara1.firstChild, 9] a ssert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is nega tive or greater than the node's length function "function () {
3749 selection.collapse(point[0], point[1]);
3750 }" did not throw
3751 FAIL Range 56 [docfrag, 0, docfrag, 0], point 20 [foreignPara1.firstChild, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3752 FAIL Range 56 [docfrag, 0, docfrag, 0], point 21 [foreignPara1.firstChild, 1] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3753 FAIL Range 56 [docfrag, 0, docfrag, 0], point 22 [foreignPara1.firstChild, 8] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3754 FAIL Range 56 [docfrag, 0, docfrag, 0], point 23 [foreignPara1.firstChild, 9] as sert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negat ive or greater than the node's length function "function () {
3755 selection.collapse(point[0], point[1]);
3756 }" did not throw
3757 PASS Range 56 [docfrag, 0, docfrag, 0], point 24 [document.documentElement, -1]
3758 FAIL Range 56 [docfrag, 0, docfrag, 0], point 25 [document.documentElement, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
3759 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3760 "
3761 FAIL Range 56 [docfrag, 0, docfrag, 0], point 26 [document.documentElement, 1] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
3762 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3763 "
3764 FAIL Range 56 [docfrag, 0, docfrag, 0], point 27 [document.documentElement, 2] a ssert_equals: focusNode must equal the node we collapse()d to expected Element n ode <html><head><title>Selection.collapse() tests</title>
3765 <me... but got Text node "Qrstuvwx"
3766 PASS Range 56 [docfrag, 0, docfrag, 0], point 28 [document.documentElement, 7]
3767 FAIL Range 56 [docfrag, 0, docfrag, 0], point 29 [document.head, 1] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <head>< title>Selection.collapse() tests</title>
3768 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3769 "
3770 FAIL Range 56 [docfrag, 0, docfrag, 0], point 30 [document.body, 3] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <body>< div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3771 </p><p id... but got Text node "Qrstuvwx"
3772 FAIL Range 56 [docfrag, 0, docfrag, 0], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3773 FAIL Range 56 [docfrag, 0, docfrag, 0], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3774 FAIL Range 56 [docfrag, 0, docfrag, 0], point 33 [foreignDoc.head, 0] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3775 FAIL Range 56 [docfrag, 0, docfrag, 0], point 34 [foreignDoc.body, 1] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3776 FAIL Range 56 [docfrag, 0, docfrag, 0], point 35 [paras[0], 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="a">Ä b̈c̈d̈ëf̈g̈ḧ
3777 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3778 "
3779 FAIL Range 56 [docfrag, 0, docfrag, 0], point 36 [paras[0], 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="a">Ä b̈c̈d̈ëf̈g̈ḧ
3780 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3781 "
3782 PASS Range 56 [docfrag, 0, docfrag, 0], point 37 [paras[0], 2]
3783 FAIL Range 56 [docfrag, 0, docfrag, 0], point 38 [paras[1], 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="b" st yle="display:none">Ijklmnop
3784 </p> but got Text node "Qrstuvwx"
3785 FAIL Range 56 [docfrag, 0, docfrag, 0], point 39 [paras[1], 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Element node <p id="b" st yle="display:none">Ijklmnop
3786 </p> but got Text node "Qrstuvwx"
3787 PASS Range 56 [docfrag, 0, docfrag, 0], point 40 [paras[1], 2]
3788 FAIL Range 56 [docfrag, 0, docfrag, 0], point 41 [detachedPara1, 0] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3789 FAIL Range 56 [docfrag, 0, docfrag, 0], point 42 [detachedPara1, 1] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3790 FAIL Range 56 [docfrag, 0, docfrag, 0], point 43 [testDiv, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Element node <div id="test "><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3791 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3792 "
3793 FAIL Range 56 [docfrag, 0, docfrag, 0], point 44 [testDiv, 3] assert_equals: foc usNode must equal the node we collapse()d to expected Element node <div id="test "><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3794 </p><p id="b" s... but got Text node "Qrstuvwx"
3795 PASS Range 56 [docfrag, 0, docfrag, 0], point 45 [document, -1]
3796 FAIL Range 56 [docfrag, 0, docfrag, 0], point 46 [document, 0] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3797 "
3798 FAIL Range 56 [docfrag, 0, docfrag, 0], point 47 [document, 1] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3799 "
3800 FAIL Range 56 [docfrag, 0, docfrag, 0], point 48 [document, 2] assert_equals: fo cusNode must equal the node we collapse()d to expected Document node with 2 chil dren but got Text node "Qrstuvwx"
3801 PASS Range 56 [docfrag, 0, docfrag, 0], point 49 [document, 3]
3802 PASS Range 56 [docfrag, 0, docfrag, 0], point 50 [comment, -1]
3803 FAIL Range 56 [docfrag, 0, docfrag, 0], point 51 [comment, 0] assert_equals: foc usNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3804 FAIL Range 56 [docfrag, 0, docfrag, 0], point 52 [comment, 4] assert_equals: foc usNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3805 PASS Range 56 [docfrag, 0, docfrag, 0], point 53 [comment, 96]
3806 FAIL Range 56 [docfrag, 0, docfrag, 0], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3807 FAIL Range 56 [docfrag, 0, docfrag, 0], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3808 FAIL Range 56 [docfrag, 0, docfrag, 0], point 56 [foreignComment, 2] assert_equa ls: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3809 FAIL Range 56 [docfrag, 0, docfrag, 0], point 57 [foreignTextNode, 0] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3810 FAIL Range 56 [docfrag, 0, docfrag, 0], point 58 [foreignTextNode, 36] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3811 PASS Range 56 [docfrag, 0, docfrag, 0], point 59 [xmlDoc, -1]
3812 FAIL Range 56 [docfrag, 0, docfrag, 0], point 60 [xmlDoc, 0] assert_equals: sele ction.rangeCount must equal 1 after collapse() expected 1 but got 0
3813 FAIL Range 56 [docfrag, 0, docfrag, 0], point 61 [xmlDoc, 1] assert_equals: sele ction.rangeCount must equal 1 after collapse() expected 1 but got 0
3814 FAIL Range 56 [docfrag, 0, docfrag, 0], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater th an the node's length function "function () {
3815 selection.collapse(point[0], point[1]);
3816 }" did not throw
3817 FAIL Range 56 [docfrag, 0, docfrag, 0], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3818 FAIL Range 56 [docfrag, 0, docfrag, 0], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3819 FAIL Range 56 [docfrag, 0, docfrag, 0], point 65 [processingInstruction, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3820 FAIL Range 56 [docfrag, 0, docfrag, 0], point 66 [processingInstruction, 5] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3821 FAIL Range 56 [docfrag, 0, docfrag, 0], point 67 [processingInstruction, 9] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3822 FAIL Range 56 [docfrag, 0, docfrag, 0], point 68 [detachedTextNode, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3823 FAIL Range 56 [docfrag, 0, docfrag, 0], point 69 [detachedTextNode, 8] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3824 FAIL Range 56 [docfrag, 0, docfrag, 0], point 70 [detachedForeignTextNode, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3825 FAIL Range 56 [docfrag, 0, docfrag, 0], point 71 [detachedForeignTextNode, 8] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3826 FAIL Range 56 [docfrag, 0, docfrag, 0], point 72 [detachedXmlTextNode, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3827 FAIL Range 56 [docfrag, 0, docfrag, 0], point 73 [detachedXmlTextNode, 8] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3828 FAIL Range 56 [docfrag, 0, docfrag, 0], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3829 FAIL Range 56 [docfrag, 0, docfrag, 0], point 75 [detachedComment, 3] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3830 FAIL Range 56 [docfrag, 0, docfrag, 0], point 76 [detachedComment, 5] assert_equ als: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3831 FAIL Range 56 [docfrag, 0, docfrag, 0], point 77 [detachedForeignComment, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3832 FAIL Range 56 [docfrag, 0, docfrag, 0], point 78 [detachedForeignComment, 4] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3833 FAIL Range 56 [docfrag, 0, docfrag, 0], point 79 [detachedXmlComment, 2] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3834 FAIL Range 56 [docfrag, 0, docfrag, 0], point 80 [docfrag, 0] assert_equals: sel ection.rangeCount must equal 1 after collapse() expected 1 but got 0
3835 FAIL Range 56 [docfrag, 0, docfrag, 0], point 81 [foreignDocfrag, 0] assert_equa ls: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3836 FAIL Range 56 [docfrag, 0, docfrag, 0], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3837 PASS Range 56 [docfrag, 0, docfrag, 0], point 83 [doctype, 0]
3838 FAIL Range 56 [docfrag, 0, docfrag, 0], point 84 [doctype, -17] assert_throws: M ust throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3839 selection.collapse(point[0], point[1]);
3840 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3841 PASS Range 56 [docfrag, 0, docfrag, 0], point 85 [doctype, 1]
3842 FAIL Range 56 [docfrag, 0, docfrag, 0], point 86 [foreignDoctype, 0] assert_thro ws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Documen tType function "function () {
3843 selection.collapse(point[0], point[1]);
3844 }" did not throw
3845 FAIL Range 56 [docfrag, 0, docfrag, 0], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentTyp e function "function () {
3846 selection.collapse(point[0], point[1]);
3847 }" did not throw
3848 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 0 [paras[0].firstChi ld, -1]
3849 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 1 [paras[0].firstChi ld, 0]
3850 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 2 [paras[0].firstChi ld, 1] assert_equals: focusOffset must equal the offset we collapse()d to expect ed 1 but got 2
3851 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 3 [paras[0].firstChi ld, 2]
3852 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 4 [paras[0].firstChi ld, 8]
3853 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 5 [paras[0].firstChi ld, 9] assert_equals: focusOffset must equal the offset we collapse()d to expect ed 9 but got 10
3854 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 6 [paras[0].firstChi ld, 10]
3855 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 7 [paras[0].firstChi ld, 65535]
3856 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 8 [paras[1].firstChi ld, -1]
3857 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 9 [paras[1].firstChi ld, 0] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
3858 " but got Text node "Qrstuvwx"
3859 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 10 [paras[1].firstCh ild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3860 " but got Text node "Qrstuvwx"
3861 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 11 [paras[1].firstCh ild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3862 " but got Text node "Qrstuvwx"
3863 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 12 [paras[1].firstCh ild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3864 " but got Text node "Qrstuvwx"
3865 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 13 [paras[1].firstCh ild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3866 " but got Text node "Qrstuvwx"
3867 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 14 [paras[1].firstCh ild, 10]
3868 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 15 [paras[1].firstCh ild, 65535]
3869 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 16 [detachedPara1.fi rstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3870 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 17 [detachedPara1.fi rstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3871 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 18 [detachedPara1.fi rstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3872 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 19 [detachedPara1.fi rstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3873 selection.collapse(point[0], point[1]);
3874 }" did not throw
3875 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 20 [foreignPara1.fir stChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3876 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 21 [foreignPara1.fir stChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3877 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 22 [foreignPara1.fir stChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3878 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 23 [foreignPara1.fir stChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the o ffset is negative or greater than the node's length function "function () {
3879 selection.collapse(point[0], point[1]);
3880 }" did not throw
3881 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 24 [document.documen tElement, -1]
3882 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 25 [document.documen tElement, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title>Selection.collapse() tests</title>
3883 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3884 "
3885 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 26 [document.documen tElement, 1] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title>Selection.collapse() tests</title>
3886 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3887 "
3888 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 27 [document.documen tElement, 2] assert_equals: focusNode must equal the node we collapse()d to expe cted Element node <html><head><title>Selection.collapse() tests</title>
3889 <me... but got Text node "Qrstuvwx"
3890 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 28 [document.documen tElement, 7]
3891 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 29 [document.head, 1 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <head><title>Selection.collapse() tests</title>
3892 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3893 "
3894 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 30 [document.body, 3 ] assert_equals: focusNode must equal the node we collapse()d to expected Elemen t node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3895 </p><p id... but got Text node "Qrstuvwx"
3896 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 31 [foreignDoc.docum entElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3897 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 32 [foreignDoc.docum entElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3898 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3899 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3900 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 35 [paras[0], 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3901 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3902 "
3903 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 36 [paras[0], 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3904 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3905 "
3906 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 37 [paras[0], 2]
3907 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 38 [paras[1], 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <p id="b" style="display:none">Ijklmnop
3908 </p> but got Text node "Qrstuvwx"
3909 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 39 [paras[1], 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Element nod e <p id="b" style="display:none">Ijklmnop
3910 </p> but got Text node "Qrstuvwx"
3911 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 40 [paras[1], 2]
3912 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 41 [detachedPara1, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3913 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 42 [detachedPara1, 1 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3914 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 43 [testDiv, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3915 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3916 "
3917 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 44 [testDiv, 3] asse rt_equals: focusNode must equal the node we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3918 </p><p id="b" s... but got Text node "Qrstuvwx"
3919 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 45 [document, -1]
3920 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 46 [document, 0] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3921 "
3922 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 47 [document, 1] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3923 "
3924 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 48 [document, 2] ass ert_equals: focusNode must equal the node we collapse()d to expected Document no de with 2 children but got Text node "Qrstuvwx"
3925 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 49 [document, 3]
3926 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 50 [comment, -1]
3927 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 51 [comment, 0] asse rt_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3928 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 52 [comment, 4] asse rt_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3929 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 53 [comment, 96]
3930 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 54 [foreignDoc, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3931 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 55 [foreignDoc, 1] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3932 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3933 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3934 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3935 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 59 [xmlDoc, -1]
3936 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 60 [xmlDoc, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3937 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 61 [xmlDoc, 1] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3938 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 62 [xmlDoc, 5] asser t_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
3939 selection.collapse(point[0], point[1]);
3940 }" did not throw
3941 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 63 [xmlComment, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3942 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 64 [xmlComment, 4] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3943 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 65 [processingInstru ction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3944 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 66 [processingInstru ction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3945 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 67 [processingInstru ction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3946 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 68 [detachedTextNode , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3947 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 69 [detachedTextNode , 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3948 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 70 [detachedForeignT extNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3949 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 71 [detachedForeignT extNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3950 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 72 [detachedXmlTextN ode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
3951 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 73 [detachedXmlTextN ode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
3952 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 74 [detachedProcessi ngInstruction, 12] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3953 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3954 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3955 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 77 [detachedForeignC omment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3956 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 78 [detachedForeignC omment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3957 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 79 [detachedXmlComme nt, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3958 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 80 [docfrag, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3959 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3960 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 82 [xmlDocfrag, 0] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3961 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 83 [doctype, 0]
3962 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 84 [doctype, -17] as sert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3963 selection.collapse(point[0], point[1]);
3964 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
3965 PASS Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 85 [doctype, 1]
3966 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the nod e is a DocumentType function "function () {
3967 selection.collapse(point[0], point[1]);
3968 }" did not throw
3969 FAIL Range 57 [foreignDocfrag, 0, foreignDocfrag, 0], point 87 [xmlDoctype, 0] a ssert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3970 selection.collapse(point[0], point[1]);
3971 }" did not throw
3972 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 0 [paras[0].firstChild, -1]
3973 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 1 [paras[0].firstChild, 0]
3974 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 2 [paras[0].firstChild, 1] a ssert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3975 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 3 [paras[0].firstChild, 2]
3976 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 4 [paras[0].firstChild, 8]
3977 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 5 [paras[0].firstChild, 9] a ssert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3978 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 6 [paras[0].firstChild, 10]
3979 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 7 [paras[0].firstChild, 6553 5]
3980 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 8 [paras[1].firstChild, -1]
3981 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 9 [paras[1].firstChild, 0] a ssert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3982 " but got Text node "Qrstuvwx"
3983 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
3984 " but got Text node "Qrstuvwx"
3985 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
3986 " but got Text node "Qrstuvwx"
3987 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
3988 " but got Text node "Qrstuvwx"
3989 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text nod e "Ijklmnop
3990 " but got Text node "Qrstuvwx"
3991 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 14 [paras[1].firstChild, 10]
3992 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 15 [paras[1].firstChild, 655 35]
3993 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 16 [detachedPara1.firstChild , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3994 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 17 [detachedPara1.firstChild , 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3995 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 18 [detachedPara1.firstChild , 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3996 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 19 [detachedPara1.firstChild , 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset i s negative or greater than the node's length function "function () {
3997 selection.collapse(point[0], point[1]);
3998 }" did not throw
3999 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4000 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4001 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4002 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than the node's length function "function () {
4003 selection.collapse(point[0], point[1]);
4004 }" did not throw
4005 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 24 [document.documentElement , -1]
4006 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 25 [document.documentElement , 0] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
4007 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4008 "
4009 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 26 [document.documentElement , 1] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
4010 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4011 "
4012 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 27 [document.documentElement , 2] assert_equals: focusNode must equal the node we collapse()d to expected Ele ment node <html><head><title>Selection.collapse() tests</title>
4013 <me... but got Text node "Qrstuvwx"
4014 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 28 [document.documentElement , 7]
4015 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 29 [document.head, 1] assert _equals: focusNode must equal the node we collapse()d to expected Element node < head><title>Selection.collapse() tests</title>
4016 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4017 "
4018 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 30 [document.body, 3] assert _equals: focusNode must equal the node we collapse()d to expected Element node < body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
4019 </p><p id... but got Text node "Qrstuvwx"
4020 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 31 [foreignDoc.documentEleme nt, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
4021 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 32 [foreignDoc.documentEleme nt, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
4022 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 33 [foreignDoc.head, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4023 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 34 [foreignDoc.body, 1] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4024 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 35 [paras[0], 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "a">Äb̈c̈d̈ëf̈g̈ḧ
4025 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4026 "
4027 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 36 [paras[0], 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "a">Äb̈c̈d̈ëf̈g̈ḧ
4028 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4029 "
4030 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 37 [paras[0], 2]
4031 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 38 [paras[1], 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "b" style="display:none">Ijklmnop
4032 </p> but got Text node "Qrstuvwx"
4033 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 39 [paras[1], 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Element node <p id= "b" style="display:none">Ijklmnop
4034 </p> but got Text node "Qrstuvwx"
4035 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 40 [paras[1], 2]
4036 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 41 [detachedPara1, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4037 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 42 [detachedPara1, 1] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4038 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 43 [testDiv, 0] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <div id ="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
4039 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4040 "
4041 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 44 [testDiv, 3] assert_equal s: focusNode must equal the node we collapse()d to expected Element node <div id ="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
4042 </p><p id="b" s... but got Text node "Qrstuvwx"
4043 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 45 [document, -1]
4044 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 46 [document, 0] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4045 "
4046 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 47 [document, 1] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4047 "
4048 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 48 [document, 2] assert_equa ls: focusNode must equal the node we collapse()d to expected Document node with 2 children but got Text node "Qrstuvwx"
4049 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 49 [document, 3]
4050 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 50 [comment, -1]
4051 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 51 [comment, 0] assert_equal s: focusNode must equal the node we collapse()d to expected Comment node <!--Alp habet soup?--> but got Text node "Qrstuvwx"
4052 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 52 [comment, 4] assert_equal s: focusNode must equal the node we collapse()d to expected Comment node <!--Alp habet soup?--> but got Text node "Qrstuvwx"
4053 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 53 [comment, 96]
4054 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 54 [foreignDoc, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4055 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 55 [foreignDoc, 1] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4056 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 56 [foreignComment, 2] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4057 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 57 [foreignTextNode, 0] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4058 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 58 [foreignTextNode, 36] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4059 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 59 [xmlDoc, -1]
4060 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 60 [xmlDoc, 0] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4061 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 61 [xmlDoc, 1] assert_equals : selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4062 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 62 [xmlDoc, 5] assert_throws : Must throw INDEX_SIZE_ERR when collapse()ing if the offset is negative or grea ter than the node's length function "function () {
4063 selection.collapse(point[0], point[1]);
4064 }" did not throw
4065 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 63 [xmlComment, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4066 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 64 [xmlComment, 4] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4067 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 65 [processingInstruction, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4068 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 66 [processingInstruction, 5 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4069 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 67 [processingInstruction, 9 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4070 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 68 [detachedTextNode, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4071 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 69 [detachedTextNode, 8] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4072 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4073 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4074 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4075 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4076 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 74 [detachedProcessingInstru ction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
4077 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 75 [detachedComment, 3] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4078 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 76 [detachedComment, 5] asse rt_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4079 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4080 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4081 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 79 [detachedXmlComment, 2] a ssert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4082 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 80 [docfrag, 0] assert_equal s: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4083 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 81 [foreignDocfrag, 0] asser t_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4084 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 82 [xmlDocfrag, 0] assert_eq uals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4085 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 83 [doctype, 0]
4086 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 84 [doctype, -17] assert_thr ows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docume ntType function "function () {
4087 selection.collapse(point[0], point[1]);
4088 }" threw object "IndexSizeError: Failed to execute 'collapse' on 'Select ion': -17 is not a valid offset." that is not a DOMException INVALID_NODE_TYPE_E RR: property "code" is equal to 1, expected 24
4089 PASS Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 85 [doctype, 1]
4090 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 86 [foreignDoctype, 0] asser t_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a D ocumentType function "function () {
4091 selection.collapse(point[0], point[1]);
4092 }" did not throw
4093 FAIL Range 58 [xmlDocfrag, 0, xmlDocfrag, 0], point 87 [xmlDoctype, 0] assert_th rows: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a Docum entType function "function () {
4094 selection.collapse(point[0], point[1]);
4095 }" did not throw
4096 Harness: the test ran to completion.
4097
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698