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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/selection/collapse-00-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 CONSOLE ERROR: line 8: The given range isn't in document.
354 CONSOLE ERROR: line 8: The given range isn't in document.
355 CONSOLE ERROR: line 8: The given range isn't in document.
356 CONSOLE ERROR: line 8: The given range isn't in document.
357 CONSOLE ERROR: line 8: The given range isn't in document.
358 CONSOLE ERROR: line 8: The given range isn't in document.
359 CONSOLE ERROR: line 8: The given range isn't in document.
360 CONSOLE ERROR: line 8: The given range isn't in document.
361 CONSOLE ERROR: line 8: The given range isn't in document.
362 CONSOLE ERROR: line 8: The given range isn't in document.
363 CONSOLE ERROR: line 8: The given range isn't in document.
364 CONSOLE ERROR: line 8: The given range isn't in document.
365 CONSOLE ERROR: line 8: The given range isn't in document.
366 CONSOLE ERROR: line 8: The given range isn't in document.
367 CONSOLE ERROR: line 8: The given range isn't in document.
368 CONSOLE ERROR: line 8: The given range isn't in document.
369 CONSOLE ERROR: line 8: The given range isn't in document.
370 CONSOLE ERROR: line 8: The given range isn't in document.
371 CONSOLE ERROR: line 8: The given range isn't in document.
372 CONSOLE ERROR: line 8: The given range isn't in document.
373 CONSOLE ERROR: line 8: The given range isn't in document.
374 CONSOLE ERROR: line 8: The given range isn't in document.
375 CONSOLE ERROR: line 8: The given range isn't in document.
376 CONSOLE ERROR: line 8: The given range isn't in document.
377 CONSOLE ERROR: line 8: The given range isn't in document.
378 CONSOLE ERROR: line 8: The given range isn't in document.
379 CONSOLE ERROR: line 8: The given range isn't in document.
380 CONSOLE ERROR: line 8: The given range isn't in document.
381 CONSOLE ERROR: line 8: The given range isn't in document.
382 CONSOLE ERROR: line 8: The given range isn't in document.
383 CONSOLE ERROR: line 8: The given range isn't in document.
384 CONSOLE ERROR: line 8: The given range isn't in document.
385 CONSOLE ERROR: line 8: The given range isn't in document.
386 CONSOLE ERROR: line 8: The given range isn't in document.
387 CONSOLE ERROR: line 8: The given range isn't in document.
388 CONSOLE ERROR: line 8: The given range isn't in document.
389 CONSOLE ERROR: line 8: The given range isn't in document.
390 CONSOLE ERROR: line 8: The given range isn't in document.
391 CONSOLE ERROR: line 8: The given range isn't in document.
392 CONSOLE ERROR: line 8: The given range isn't in document.
393 CONSOLE ERROR: line 8: The given range isn't in document.
394 CONSOLE ERROR: line 8: The given range isn't in document.
395 CONSOLE ERROR: line 8: The given range isn't in document.
396 CONSOLE ERROR: line 8: The given range isn't in document.
397 CONSOLE ERROR: line 8: The given range isn't in document.
398 CONSOLE ERROR: line 8: The given range isn't in document.
399 CONSOLE ERROR: line 8: The given range isn't in document.
400 CONSOLE ERROR: line 8: The given range isn't in document.
401 CONSOLE ERROR: line 8: The given range isn't in document.
402 CONSOLE ERROR: line 8: The given range isn't in document.
403 CONSOLE ERROR: line 8: The given range isn't in document.
404 CONSOLE ERROR: line 8: The given range isn't in document.
405 CONSOLE ERROR: line 8: The given range isn't in document.
406 CONSOLE ERROR: line 8: The given range isn't in document.
407 CONSOLE ERROR: line 8: The given range isn't in document.
408 CONSOLE ERROR: line 8: The given range isn't in document.
409 CONSOLE ERROR: line 8: The given range isn't in document.
410 CONSOLE ERROR: line 8: The given range isn't in document.
411 CONSOLE ERROR: line 8: The given range isn't in document.
412 CONSOLE ERROR: line 8: The given range isn't in document.
413 CONSOLE ERROR: line 8: The given range isn't in document.
414 CONSOLE ERROR: line 8: The given range isn't in document.
415 CONSOLE ERROR: line 8: The given range isn't in document.
416 CONSOLE ERROR: line 8: The given range isn't in document.
417 CONSOLE ERROR: line 8: The given range isn't in document.
418 CONSOLE ERROR: line 8: The given range isn't in document.
419 CONSOLE ERROR: line 8: The given range isn't in document.
420 CONSOLE ERROR: line 8: The given range isn't in document.
421 CONSOLE ERROR: line 8: The given range isn't in document.
422 CONSOLE ERROR: line 8: The given range isn't in document.
423 CONSOLE ERROR: line 8: The given range isn't in document.
424 CONSOLE ERROR: line 8: The given range isn't in document.
425 CONSOLE ERROR: line 8: The given range isn't in document.
426 CONSOLE ERROR: line 8: The given range isn't in document.
427 CONSOLE ERROR: line 8: The given range isn't in document.
428 CONSOLE ERROR: line 8: The given range isn't in document.
429 CONSOLE ERROR: line 8: The given range isn't in document.
430 CONSOLE ERROR: line 8: The given range isn't in document.
431 CONSOLE ERROR: line 8: The given range isn't in document.
432 CONSOLE ERROR: line 8: The given range isn't in document.
433 CONSOLE ERROR: line 8: The given range isn't in document.
434 CONSOLE ERROR: line 8: The given range isn't in document.
435 CONSOLE ERROR: line 8: The given range isn't in document.
436 CONSOLE ERROR: line 8: The given range isn't in document.
437 CONSOLE ERROR: line 8: The given range isn't in document.
438 CONSOLE ERROR: line 8: The given range isn't in document.
439 CONSOLE ERROR: line 8: The given range isn't in document.
440 CONSOLE ERROR: line 8: The given range isn't in document.
441 This is a testharness.js-based test.
442 PASS Set up range 0 []
443 PASS Set up range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0]
444 PASS Set up range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1]
445 PASS Set up range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8]
446 PASS Set up range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9]
447 PASS Set up range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0]
448 PASS Set up range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1]
449 PASS Set up range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8]
450 PASS Set up range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9]
451 PASS Set up range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0]
452 PASS Set up range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1]
453 PASS Set up range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8]
454 PASS Set up range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0]
455 PASS Set up range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1]
456 PASS Set up range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8]
457 PASS Set up range 15 [document.documentElement, 0, document.documentElement, 1]
458 PASS Set up range 16 [document.documentElement, 0, document.documentElement, 2]
459 PASS Set up range 17 [document.documentElement, 1, document.documentElement, 2]
460 PASS Set up range 18 [document.head, 1, document.head, 1]
461 PASS Set up range 19 [document.body, 0, document.body, 1]
462 PASS Set up range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1]
463 PASS Set up range 21 [foreignDoc.head, 1, foreignDoc.head, 1]
464 PASS Set up range 22 [foreignDoc.body, 0, foreignDoc.body, 0]
465 PASS Set up range 23 [paras[0], 0, paras[0], 0]
466 PASS Set up range 24 [paras[0], 0, paras[0], 1]
467 PASS Set up range 25 [detachedPara1, 0, detachedPara1, 0]
468 PASS Set up range 26 [detachedPara1, 0, detachedPara1, 1]
469 PASS Set up range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0]
470 PASS Set up range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8]
471 PASS Set up range 29 [paras[0].firstChild, 3, paras[3], 1]
472 PASS Range 0 [], point 0 [paras[0].firstChild, -1]
473 PASS Range 0 [], point 1 [paras[0].firstChild, 0]
474 FAIL Range 0 [], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset mus t equal the offset we collapse()d to expected 1 but got 2
475 PASS Range 0 [], point 3 [paras[0].firstChild, 2]
476 PASS Range 0 [], point 4 [paras[0].firstChild, 8]
477 FAIL Range 0 [], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset mus t equal the offset we collapse()d to expected 9 but got 10
478 PASS Range 0 [], point 6 [paras[0].firstChild, 10]
479 PASS Range 0 [], point 7 [paras[0].firstChild, 65535]
480 PASS Range 0 [], point 8 [paras[1].firstChild, -1]
481 FAIL Range 0 [], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
482 " but got Text node "Qrstuvwx"
483 FAIL Range 0 [], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
484 " but got Text node "Qrstuvwx"
485 FAIL Range 0 [], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
486 " but got Text node "Qrstuvwx"
487 FAIL Range 0 [], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
488 " but got Text node "Qrstuvwx"
489 FAIL Range 0 [], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
490 " but got Text node "Qrstuvwx"
491 PASS Range 0 [], point 14 [paras[1].firstChild, 10]
492 PASS Range 0 [], point 15 [paras[1].firstChild, 65535]
493 FAIL Range 0 [], point 16 [detachedPara1.firstChild, 0] assert_equals: selection .rangeCount must equal 1 after collapse() expected 1 but got 0
494 FAIL Range 0 [], point 17 [detachedPara1.firstChild, 1] assert_equals: selection .rangeCount must equal 1 after collapse() expected 1 but got 0
495 FAIL Range 0 [], point 18 [detachedPara1.firstChild, 8] assert_equals: selection .rangeCount must equal 1 after collapse() expected 1 but got 0
496 FAIL Range 0 [], point 19 [detachedPara1.firstChild, 9] assert_throws: Must thro w INDEX_SIZE_ERR when collapse()ing if the offset is negative or greater than th e node's length function "function () {
497 selection.collapse(point[0], point[1]);
498 }" did not throw
499 FAIL Range 0 [], point 20 [foreignPara1.firstChild, 0] assert_equals: selection. rangeCount must equal 1 after collapse() expected 1 but got 0
500 FAIL Range 0 [], point 21 [foreignPara1.firstChild, 1] assert_equals: selection. rangeCount must equal 1 after collapse() expected 1 but got 0
501 FAIL Range 0 [], point 22 [foreignPara1.firstChild, 8] assert_equals: selection. rangeCount must equal 1 after collapse() expected 1 but got 0
502 FAIL Range 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 () {
503 selection.collapse(point[0], point[1]);
504 }" did not throw
505 PASS Range 0 [], point 24 [document.documentElement, -1]
506 FAIL Range 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>
507 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
508 "
509 FAIL Range 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>
510 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
511 "
512 FAIL Range 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>
513 <me... but got Text node "Qrstuvwx"
514 PASS Range 0 [], point 28 [document.documentElement, 7]
515 FAIL Range 0 [], point 29 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collaps e() tests</title>
516 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
517 "
518 FAIL Range 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̈ḧ
519 </p><p id... but got Text node "Qrstuvwx"
520 FAIL Range 0 [], point 31 [foreignDoc.documentElement, 0] assert_equals: selecti on.rangeCount must equal 1 after collapse() expected 1 but got 0
521 FAIL Range 0 [], point 32 [foreignDoc.documentElement, 1] assert_equals: selecti on.rangeCount must equal 1 after collapse() expected 1 but got 0
522 FAIL Range 0 [], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCou nt must equal 1 after collapse() expected 1 but got 0
523 FAIL Range 0 [], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCou nt must equal 1 after collapse() expected 1 but got 0
524 FAIL Range 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̈ḧ
525 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
526 "
527 FAIL Range 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̈ḧ
528 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
529 "
530 PASS Range 0 [], point 37 [paras[0], 2]
531 FAIL Range 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">Ijkl mnop
532 </p> but got Text node "Qrstuvwx"
533 FAIL Range 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">Ijkl mnop
534 </p> but got Text node "Qrstuvwx"
535 PASS Range 0 [], point 40 [paras[1], 2]
536 FAIL Range 0 [], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
537 FAIL Range 0 [], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
538 FAIL Range 0 [], point 43 [testDiv, 0] assert_equals: focusNode must equal the n ode we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf ̈g̈ḧ
539 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
540 "
541 FAIL Range 0 [], point 44 [testDiv, 3] assert_equals: focusNode must equal the n ode we collapse()d to expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf ̈g̈ḧ
542 </p><p id="b" s... but got Text node "Qrstuvwx"
543 PASS Range 0 [], point 45 [document, -1]
544 FAIL Range 0 [], 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̈ḧ
545 "
546 FAIL Range 0 [], 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̈ḧ
547 "
548 FAIL Range 0 [], 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"
549 PASS Range 0 [], point 49 [document, 3]
550 PASS Range 0 [], point 50 [comment, -1]
551 FAIL Range 0 [], point 51 [comment, 0] assert_equals: focusNode must equal the n ode we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text n ode "Qrstuvwx"
552 FAIL Range 0 [], point 52 [comment, 4] assert_equals: focusNode must equal the n ode we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text n ode "Qrstuvwx"
553 PASS Range 0 [], point 53 [comment, 96]
554 FAIL Range 0 [], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount mu st equal 1 after collapse() expected 1 but got 0
555 FAIL Range 0 [], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount mu st equal 1 after collapse() expected 1 but got 0
556 FAIL Range 0 [], point 56 [foreignComment, 2] assert_equals: selection.rangeCoun t must equal 1 after collapse() expected 1 but got 0
557 FAIL Range 0 [], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCou nt must equal 1 after collapse() expected 1 but got 0
558 FAIL Range 0 [], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCo unt must equal 1 after collapse() expected 1 but got 0
559 PASS Range 0 [], point 59 [xmlDoc, -1]
560 FAIL Range 0 [], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must e qual 1 after collapse() expected 1 but got 0
561 FAIL Range 0 [], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must e qual 1 after collapse() expected 1 but got 0
562 FAIL Range 0 [], point 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR w hen collapse()ing if the offset is negative or greater than the node's length fu nction "function () {
563 selection.collapse(point[0], point[1]);
564 }" did not throw
565 FAIL Range 0 [], point 63 [xmlComment, 0] assert_equals: selection.rangeCount mu st equal 1 after collapse() expected 1 but got 0
566 FAIL Range 0 [], point 64 [xmlComment, 4] assert_equals: selection.rangeCount mu st equal 1 after collapse() expected 1 but got 0
567 FAIL Range 0 [], point 65 [processingInstruction, 0] assert_equals: selection.ra ngeCount must equal 1 after collapse() expected 1 but got 0
568 FAIL Range 0 [], point 66 [processingInstruction, 5] assert_equals: selection.ra ngeCount must equal 1 after collapse() expected 1 but got 0
569 FAIL Range 0 [], point 67 [processingInstruction, 9] assert_equals: selection.ra ngeCount must equal 1 after collapse() expected 1 but got 0
570 FAIL Range 0 [], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCo unt must equal 1 after collapse() expected 1 but got 0
571 FAIL Range 0 [], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCo unt must equal 1 after collapse() expected 1 but got 0
572 FAIL Range 0 [], point 70 [detachedForeignTextNode, 0] assert_equals: selection. rangeCount must equal 1 after collapse() expected 1 but got 0
573 FAIL Range 0 [], point 71 [detachedForeignTextNode, 8] assert_equals: selection. rangeCount must equal 1 after collapse() expected 1 but got 0
574 FAIL Range 0 [], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rang eCount must equal 1 after collapse() expected 1 but got 0
575 FAIL Range 0 [], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rang eCount must equal 1 after collapse() expected 1 but got 0
576 FAIL Range 0 [], point 74 [detachedProcessingInstruction, 12] assert_equals: sel ection.rangeCount must equal 1 after collapse() expected 1 but got 0
577 FAIL Range 0 [], point 75 [detachedComment, 3] assert_equals: selection.rangeCou nt must equal 1 after collapse() expected 1 but got 0
578 FAIL Range 0 [], point 76 [detachedComment, 5] assert_equals: selection.rangeCou nt must equal 1 after collapse() expected 1 but got 0
579 FAIL Range 0 [], point 77 [detachedForeignComment, 0] assert_equals: selection.r angeCount must equal 1 after collapse() expected 1 but got 0
580 FAIL Range 0 [], point 78 [detachedForeignComment, 4] assert_equals: selection.r angeCount must equal 1 after collapse() expected 1 but got 0
581 FAIL Range 0 [], point 79 [detachedXmlComment, 2] assert_equals: selection.range Count must equal 1 after collapse() expected 1 but got 0
582 FAIL Range 0 [], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
583 FAIL Range 0 [], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCoun t must equal 1 after collapse() expected 1 but got 0
584 FAIL Range 0 [], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount mu st equal 1 after collapse() expected 1 but got 0
585 PASS Range 0 [], point 83 [doctype, 0]
586 FAIL Range 0 [], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_ TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
587 selection.collapse(point[0], point[1]);
588 }" 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
589 PASS Range 0 [], point 85 [doctype, 1]
590 FAIL Range 0 [], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_ NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "functio n () {
591 selection.collapse(point[0], point[1]);
592 }" did not throw
593 FAIL Range 0 [], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE _TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
594 selection.collapse(point[0], point[1]);
595 }" did not throw
596 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 0 [paras[0] .firstChild, -1]
597 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 1 [paras[0] .firstChild, 0]
598 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
599 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 3 [paras[0] .firstChild, 2]
600 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 4 [paras[0] .firstChild, 8]
601 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
602 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 6 [paras[0] .firstChild, 10]
603 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 7 [paras[0] .firstChild, 65535]
604 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 8 [paras[1] .firstChild, -1]
605 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
606 " but got Text node "Qrstuvwx"
607 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
608 " but got Text node "Qrstuvwx"
609 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
610 " but got Text node "Qrstuvwx"
611 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
612 " but got Text node "Qrstuvwx"
613 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
614 " but got Text node "Qrstuvwx"
615 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 14 [paras[1 ].firstChild, 10]
616 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 15 [paras[1 ].firstChild, 65535]
617 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
618 "
619 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
620 "
621 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
622 "
623 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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 () {
624 selection.collapse(point[0], point[1]);
625 }" did not throw
626 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
627 "
628 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
629 "
630 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
631 "
632 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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 () {
633 selection.collapse(point[0], point[1]);
634 }" did not throw
635 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 24 [documen t.documentElement, -1]
636 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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>
637 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
638 "
639 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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>
640 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
641 "
642 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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>
643 <me... but got Text node "Qrstuvwx"
644 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 28 [documen t.documentElement, 7]
645 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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>
646 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
647 "
648 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
649 </p><p id... but got Text node "Qrstuvwx"
650 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
651 "
652 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
653 "
654 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ ḧ
655 "
656 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
657 "
658 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
659 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
660 "
661 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
662 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
663 "
664 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 37 [paras[0 ], 2]
665 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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
666 </p> but got Text node "Qrstuvwx"
667 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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
668 </p> but got Text node "Qrstuvwx"
669 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 40 [paras[1 ], 2]
670 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
671 "
672 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
673 "
674 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
675 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
676 "
677 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
678 </p><p id="b" s... but got Text node "Qrstuvwx"
679 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 45 [documen t, -1]
680 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
681 "
682 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
683 "
684 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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"
685 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 49 [documen t, 3]
686 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 50 [comment , -1]
687 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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"
688 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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"
689 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 53 [comment , 96]
690 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
691 "
692 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
693 "
694 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
695 "
696 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
697 "
698 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
699 "
700 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 59 [xmlDoc, -1]
701 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
702 "
703 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
704 "
705 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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 () {
706 selection.collapse(point[0], point[1]);
707 }" did not throw
708 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
709 "
710 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
711 "
712 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
713 "
714 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
715 "
716 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
717 "
718 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
719 "
720 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
721 "
722 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
723 "
724 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
725 "
726 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
727 "
728 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
729 "
730 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
731 "
732 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
733 "
734 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
735 "
736 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
737 "
738 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
739 "
740 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
741 "
742 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
743 "
744 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
745 "
746 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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̈ḧ
747 "
748 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 83 [doctype , 0]
749 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
750 selection.collapse(point[0], point[1]);
751 }" 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
752 PASS Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 0], point 85 [doctype , 1]
753 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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 () {
754 selection.collapse(point[0], point[1]);
755 }" did not throw
756 FAIL Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 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 () {
757 selection.collapse(point[0], point[1]);
758 }" did not throw
759 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 0 [paras[0] .firstChild, -1]
760 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 1 [paras[0] .firstChild, 0]
761 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
762 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 3 [paras[0] .firstChild, 2]
763 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 4 [paras[0] .firstChild, 8]
764 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
765 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 6 [paras[0] .firstChild, 10]
766 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 7 [paras[0] .firstChild, 65535]
767 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 8 [paras[1] .firstChild, -1]
768 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
769 " but got Text node "Qrstuvwx"
770 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
771 " but got Text node "Qrstuvwx"
772 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
773 " but got Text node "Qrstuvwx"
774 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
775 " but got Text node "Qrstuvwx"
776 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
777 " but got Text node "Qrstuvwx"
778 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 14 [paras[1 ].firstChild, 10]
779 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 15 [paras[1 ].firstChild, 65535]
780 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
781 "
782 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
783 "
784 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
785 "
786 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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 () {
787 selection.collapse(point[0], point[1]);
788 }" did not throw
789 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
790 "
791 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
792 "
793 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
794 "
795 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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 () {
796 selection.collapse(point[0], point[1]);
797 }" did not throw
798 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 24 [documen t.documentElement, -1]
799 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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>
800 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
801 "
802 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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>
803 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
804 "
805 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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>
806 <me... but got Text node "Qrstuvwx"
807 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 28 [documen t.documentElement, 7]
808 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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>
809 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
810 "
811 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
812 </p><p id... but got Text node "Qrstuvwx"
813 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
814 "
815 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
816 "
817 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ ḧ
818 "
819 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
820 "
821 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
822 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
823 "
824 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
825 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
826 "
827 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 37 [paras[0 ], 2]
828 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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
829 </p> but got Text node "Qrstuvwx"
830 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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
831 </p> but got Text node "Qrstuvwx"
832 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 40 [paras[1 ], 2]
833 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
834 "
835 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
836 "
837 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
838 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
839 "
840 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
841 </p><p id="b" s... but got Text node "Qrstuvwx"
842 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 45 [documen t, -1]
843 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
844 "
845 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
846 "
847 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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"
848 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 49 [documen t, 3]
849 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 50 [comment , -1]
850 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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"
851 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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"
852 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 53 [comment , 96]
853 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
854 "
855 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
856 "
857 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
858 "
859 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
860 "
861 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
862 "
863 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 59 [xmlDoc, -1]
864 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
865 "
866 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
867 "
868 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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 () {
869 selection.collapse(point[0], point[1]);
870 }" did not throw
871 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
872 "
873 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
874 "
875 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
876 "
877 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
878 "
879 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
880 "
881 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
882 "
883 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
884 "
885 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
886 "
887 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
888 "
889 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
890 "
891 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
892 "
893 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
894 "
895 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
896 "
897 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
898 "
899 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
900 "
901 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
902 "
903 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
904 "
905 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
906 "
907 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
908 "
909 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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̈ḧ
910 "
911 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 83 [doctype , 0]
912 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
913 selection.collapse(point[0], point[1]);
914 }" 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
915 PASS Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], point 85 [doctype , 1]
916 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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 () {
917 selection.collapse(point[0], point[1]);
918 }" did not throw
919 FAIL Range 2 [paras[0].firstChild, 0, paras[0].firstChild, 1], 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 () {
920 selection.collapse(point[0], point[1]);
921 }" did not throw
922 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 0 [paras[0] .firstChild, -1]
923 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 1 [paras[0] .firstChild, 0]
924 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
925 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 3 [paras[0] .firstChild, 2]
926 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 4 [paras[0] .firstChild, 8]
927 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
928 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 6 [paras[0] .firstChild, 10]
929 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 7 [paras[0] .firstChild, 65535]
930 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 8 [paras[1] .firstChild, -1]
931 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
932 " but got Text node "Qrstuvwx"
933 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
934 " but got Text node "Qrstuvwx"
935 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
936 " but got Text node "Qrstuvwx"
937 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
938 " but got Text node "Qrstuvwx"
939 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
940 " but got Text node "Qrstuvwx"
941 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 14 [paras[1 ].firstChild, 10]
942 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 15 [paras[1 ].firstChild, 65535]
943 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
944 "
945 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
946 "
947 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
948 "
949 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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 () {
950 selection.collapse(point[0], point[1]);
951 }" did not throw
952 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
953 "
954 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
955 "
956 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
957 "
958 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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 () {
959 selection.collapse(point[0], point[1]);
960 }" did not throw
961 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 24 [documen t.documentElement, -1]
962 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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>
963 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
964 "
965 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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>
966 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
967 "
968 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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>
969 <me... but got Text node "Qrstuvwx"
970 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 28 [documen t.documentElement, 7]
971 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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>
972 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
973 "
974 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
975 </p><p id... but got Text node "Qrstuvwx"
976 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
977 "
978 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
979 "
980 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ ḧ
981 "
982 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
983 "
984 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
985 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
986 "
987 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
988 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
989 "
990 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 37 [paras[0 ], 2]
991 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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
992 </p> but got Text node "Qrstuvwx"
993 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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
994 </p> but got Text node "Qrstuvwx"
995 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 40 [paras[1 ], 2]
996 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
997 "
998 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
999 "
1000 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1001 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1002 "
1003 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1004 </p><p id="b" s... but got Text node "Qrstuvwx"
1005 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 45 [documen t, -1]
1006 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1007 "
1008 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1009 "
1010 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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"
1011 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 49 [documen t, 3]
1012 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 50 [comment , -1]
1013 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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"
1014 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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"
1015 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 53 [comment , 96]
1016 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1017 "
1018 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1019 "
1020 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1021 "
1022 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1023 "
1024 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1025 "
1026 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 59 [xmlDoc, -1]
1027 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1028 "
1029 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1030 "
1031 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 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 () {
1032 selection.collapse(point[0], point[1]);
1033 }" did not throw
1034 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1035 "
1036 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1037 "
1038 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1039 "
1040 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1041 "
1042 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1043 "
1044 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1045 "
1046 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1047 "
1048 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1049 "
1050 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1051 "
1052 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1053 "
1054 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1055 "
1056 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1057 "
1058 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1059 "
1060 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1061 "
1062 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1063 "
1064 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1065 "
1066 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1067 "
1068 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1069 "
1070 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1071 "
1072 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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̈ḧ
1073 "
1074 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 83 [doctype , 0]
1075 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1076 selection.collapse(point[0], point[1]);
1077 }" 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
1078 PASS Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], point 85 [doctype , 1]
1079 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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 () {
1080 selection.collapse(point[0], point[1]);
1081 }" did not throw
1082 FAIL Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 8], 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 () {
1083 selection.collapse(point[0], point[1]);
1084 }" did not throw
1085 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 0 [paras[0] .firstChild, -1]
1086 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 1 [paras[0] .firstChild, 0]
1087 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1088 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 3 [paras[0] .firstChild, 2]
1089 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 4 [paras[0] .firstChild, 8]
1090 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1091 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 6 [paras[0] .firstChild, 10]
1092 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 7 [paras[0] .firstChild, 65535]
1093 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 8 [paras[1] .firstChild, -1]
1094 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
1095 " but got Text node "Qrstuvwx"
1096 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1097 " but got Text node "Qrstuvwx"
1098 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1099 " but got Text node "Qrstuvwx"
1100 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1101 " but got Text node "Qrstuvwx"
1102 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1103 " but got Text node "Qrstuvwx"
1104 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 14 [paras[1 ].firstChild, 10]
1105 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 15 [paras[1 ].firstChild, 65535]
1106 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1107 "
1108 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1109 "
1110 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1111 "
1112 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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 () {
1113 selection.collapse(point[0], point[1]);
1114 }" did not throw
1115 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1116 "
1117 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1118 "
1119 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1120 "
1121 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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 () {
1122 selection.collapse(point[0], point[1]);
1123 }" did not throw
1124 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 24 [documen t.documentElement, -1]
1125 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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>
1126 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1127 "
1128 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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>
1129 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1130 "
1131 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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>
1132 <me... but got Text node "Qrstuvwx"
1133 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 28 [documen t.documentElement, 7]
1134 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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>
1135 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1136 "
1137 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1138 </p><p id... but got Text node "Qrstuvwx"
1139 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1140 "
1141 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1142 "
1143 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ ḧ
1144 "
1145 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1146 "
1147 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1148 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1149 "
1150 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1151 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1152 "
1153 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 37 [paras[0 ], 2]
1154 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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
1155 </p> but got Text node "Qrstuvwx"
1156 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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
1157 </p> but got Text node "Qrstuvwx"
1158 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 40 [paras[1 ], 2]
1159 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1160 "
1161 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1162 "
1163 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1164 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1165 "
1166 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1167 </p><p id="b" s... but got Text node "Qrstuvwx"
1168 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 45 [documen t, -1]
1169 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1170 "
1171 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1172 "
1173 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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"
1174 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 49 [documen t, 3]
1175 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 50 [comment , -1]
1176 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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"
1177 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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"
1178 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 53 [comment , 96]
1179 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1180 "
1181 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1182 "
1183 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1184 "
1185 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1186 "
1187 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1188 "
1189 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 59 [xmlDoc, -1]
1190 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1191 "
1192 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1193 "
1194 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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 () {
1195 selection.collapse(point[0], point[1]);
1196 }" did not throw
1197 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1198 "
1199 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1200 "
1201 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1202 "
1203 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1204 "
1205 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1206 "
1207 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1208 "
1209 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1210 "
1211 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1212 "
1213 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1214 "
1215 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1216 "
1217 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1218 "
1219 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1220 "
1221 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1222 "
1223 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1224 "
1225 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1226 "
1227 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1228 "
1229 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1230 "
1231 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1232 "
1233 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1234 "
1235 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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̈ḧ
1236 "
1237 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 83 [doctype , 0]
1238 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1239 selection.collapse(point[0], point[1]);
1240 }" 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
1241 PASS Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], point 85 [doctype , 1]
1242 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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 () {
1243 selection.collapse(point[0], point[1]);
1244 }" did not throw
1245 FAIL Range 4 [paras[0].firstChild, 2, paras[0].firstChild, 9], 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 () {
1246 selection.collapse(point[0], point[1]);
1247 }" did not throw
1248 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 0 [paras[0] .firstChild, -1]
1249 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 1 [paras[0] .firstChild, 0]
1250 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1251 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 3 [paras[0] .firstChild, 2]
1252 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 4 [paras[0] .firstChild, 8]
1253 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1254 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 6 [paras[0] .firstChild, 10]
1255 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 7 [paras[0] .firstChild, 65535]
1256 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 8 [paras[1] .firstChild, -1]
1257 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
1258 " but got Text node "Qrstuvwx"
1259 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1260 " but got Text node "Qrstuvwx"
1261 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1262 " but got Text node "Qrstuvwx"
1263 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1264 " but got Text node "Qrstuvwx"
1265 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1266 " but got Text node "Qrstuvwx"
1267 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 14 [paras[1 ].firstChild, 10]
1268 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 15 [paras[1 ].firstChild, 65535]
1269 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1270 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1271 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1272 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 () {
1273 selection.collapse(point[0], point[1]);
1274 }" did not throw
1275 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1276 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1277 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1278 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 () {
1279 selection.collapse(point[0], point[1]);
1280 }" did not throw
1281 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 24 [documen t.documentElement, -1]
1282 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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>
1283 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1284 "
1285 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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>
1286 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1287 "
1288 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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>
1289 <me... but got Text node "Qrstuvwx"
1290 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 28 [documen t.documentElement, 7]
1291 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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>
1292 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1293 "
1294 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1295 </p><p id... but got Text node "Qrstuvwx"
1296 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1297 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1298 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1299 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1300 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1301 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1302 "
1303 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1304 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1305 "
1306 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 37 [paras[0 ], 2]
1307 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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
1308 </p> but got Text node "Qrstuvwx"
1309 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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
1310 </p> but got Text node "Qrstuvwx"
1311 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 40 [paras[1 ], 2]
1312 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1313 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1314 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1315 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1316 "
1317 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1318 </p><p id="b" s... but got Text node "Qrstuvwx"
1319 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 45 [documen t, -1]
1320 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1321 "
1322 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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̈ḧ
1323 "
1324 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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"
1325 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 49 [documen t, 3]
1326 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 50 [comment , -1]
1327 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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"
1328 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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"
1329 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 53 [comment , 96]
1330 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1331 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1332 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1333 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1334 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1335 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 59 [xmlDoc, -1]
1336 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1337 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1338 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 () {
1339 selection.collapse(point[0], point[1]);
1340 }" did not throw
1341 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1342 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1343 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx "
1344 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx "
1345 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx "
1346 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1347 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1348 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1349 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1350 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1351 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1352 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1353 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1354 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1355 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 77 [detache dForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1356 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 78 [detache dForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1357 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuv wx"
1358 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1359 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1360 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 "Qrstuvwx"
1361 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 83 [doctype , 0]
1362 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1363 selection.collapse(point[0], point[1]);
1364 }" 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
1365 PASS Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 0], point 85 [doctype , 1]
1366 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 () {
1367 selection.collapse(point[0], point[1]);
1368 }" did not throw
1369 FAIL Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 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 () {
1370 selection.collapse(point[0], point[1]);
1371 }" did not throw
1372 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 0 [paras[0] .firstChild, -1]
1373 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 1 [paras[0] .firstChild, 0]
1374 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1375 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 3 [paras[0] .firstChild, 2]
1376 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 4 [paras[0] .firstChild, 8]
1377 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1378 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 6 [paras[0] .firstChild, 10]
1379 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 7 [paras[0] .firstChild, 65535]
1380 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 8 [paras[1] .firstChild, -1]
1381 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
1382 " but got Text node "Qrstuvwx"
1383 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1384 " but got Text node "Qrstuvwx"
1385 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1386 " but got Text node "Qrstuvwx"
1387 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1388 " but got Text node "Qrstuvwx"
1389 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1390 " but got Text node "Qrstuvwx"
1391 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 14 [paras[1 ].firstChild, 10]
1392 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 15 [paras[1 ].firstChild, 65535]
1393 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1394 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1395 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1396 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 () {
1397 selection.collapse(point[0], point[1]);
1398 }" did not throw
1399 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1400 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1401 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1402 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 () {
1403 selection.collapse(point[0], point[1]);
1404 }" did not throw
1405 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 24 [documen t.documentElement, -1]
1406 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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>
1407 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1408 "
1409 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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>
1410 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1411 "
1412 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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>
1413 <me... but got Text node "Qrstuvwx"
1414 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 28 [documen t.documentElement, 7]
1415 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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>
1416 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1417 "
1418 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1419 </p><p id... but got Text node "Qrstuvwx"
1420 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1421 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1422 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1423 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1424 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1425 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1426 "
1427 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1428 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1429 "
1430 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 37 [paras[0 ], 2]
1431 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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
1432 </p> but got Text node "Qrstuvwx"
1433 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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
1434 </p> but got Text node "Qrstuvwx"
1435 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 40 [paras[1 ], 2]
1436 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1437 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1438 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1439 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1440 "
1441 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1442 </p><p id="b" s... but got Text node "Qrstuvwx"
1443 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 45 [documen t, -1]
1444 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1445 "
1446 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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̈ḧ
1447 "
1448 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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"
1449 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 49 [documen t, 3]
1450 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 50 [comment , -1]
1451 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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"
1452 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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"
1453 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 53 [comment , 96]
1454 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1455 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1456 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1457 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1458 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1459 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 59 [xmlDoc, -1]
1460 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1461 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1462 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 () {
1463 selection.collapse(point[0], point[1]);
1464 }" did not throw
1465 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1466 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1467 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx "
1468 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx "
1469 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx "
1470 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1471 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1472 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 70 [detache dForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1473 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 71 [detache dForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1474 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 72 [detache dXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1475 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 73 [detache dXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1476 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1477 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1478 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1479 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 77 [detache dForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1480 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 78 [detache dForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1481 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 79 [detache dXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--בן חיים אליעזר--> but got Text node "Qrstuv wx"
1482 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1483 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1484 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 "Qrstuvwx"
1485 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 83 [doctype , 0]
1486 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1487 selection.collapse(point[0], point[1]);
1488 }" 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
1489 PASS Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], point 85 [doctype , 1]
1490 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 () {
1491 selection.collapse(point[0], point[1]);
1492 }" did not throw
1493 FAIL Range 6 [paras[1].firstChild, 0, paras[1].firstChild, 1], 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 () {
1494 selection.collapse(point[0], point[1]);
1495 }" did not throw
1496 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 0 [paras[0] .firstChild, -1]
1497 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 1 [paras[0] .firstChild, 0]
1498 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1499 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 3 [paras[0] .firstChild, 2]
1500 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 4 [paras[0] .firstChild, 8]
1501 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1502 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 6 [paras[0] .firstChild, 10]
1503 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 7 [paras[0] .firstChild, 65535]
1504 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 8 [paras[1] .firstChild, -1]
1505 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
1506 " but got Text node "Qrstuvwx"
1507 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1508 " but got Text node "Qrstuvwx"
1509 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1510 " but got Text node "Qrstuvwx"
1511 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1512 " but got Text node "Qrstuvwx"
1513 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1514 " but got Text node "Qrstuvwx"
1515 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 14 [paras[1 ].firstChild, 10]
1516 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 15 [paras[1 ].firstChild, 65535]
1517 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1518 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1519 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1520 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 () {
1521 selection.collapse(point[0], point[1]);
1522 }" did not throw
1523 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1524 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1525 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1526 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 () {
1527 selection.collapse(point[0], point[1]);
1528 }" did not throw
1529 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 24 [documen t.documentElement, -1]
1530 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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>
1531 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1532 "
1533 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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>
1534 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1535 "
1536 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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>
1537 <me... but got Text node "Qrstuvwx"
1538 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 28 [documen t.documentElement, 7]
1539 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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>
1540 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1541 "
1542 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1543 </p><p id... but got Text node "Qrstuvwx"
1544 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1545 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1546 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1547 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1548 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1549 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1550 "
1551 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1552 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1553 "
1554 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 37 [paras[0 ], 2]
1555 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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
1556 </p> but got Text node "Qrstuvwx"
1557 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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
1558 </p> but got Text node "Qrstuvwx"
1559 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 40 [paras[1 ], 2]
1560 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1561 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1562 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1563 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1564 "
1565 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1566 </p><p id="b" s... but got Text node "Qrstuvwx"
1567 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 45 [documen t, -1]
1568 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1569 "
1570 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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̈ḧ
1571 "
1572 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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"
1573 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 49 [documen t, 3]
1574 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 50 [comment , -1]
1575 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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"
1576 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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"
1577 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 53 [comment , 96]
1578 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1579 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1580 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1581 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1582 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1583 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 59 [xmlDoc, -1]
1584 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1585 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1586 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 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 () {
1587 selection.collapse(point[0], point[1]);
1588 }" did not throw
1589 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1590 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1591 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx "
1592 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx "
1593 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx "
1594 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1595 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1596 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 70 [detache dForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1597 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 71 [detache dForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1598 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 72 [detache dXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1599 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 73 [detache dXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1600 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1601 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1602 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1603 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 77 [detache dForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1604 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 78 [detache dForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1605 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 79 [detache dXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--בן חיים אליעזר--> but got Text node "Qrstuv wx"
1606 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1607 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1608 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 "Qrstuvwx"
1609 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 83 [doctype , 0]
1610 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 84 [doctype , -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
1611 selection.collapse(point[0], point[1]);
1612 }" 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
1613 PASS Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], point 85 [doctype , 1]
1614 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 () {
1615 selection.collapse(point[0], point[1]);
1616 }" did not throw
1617 FAIL Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 8], 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 () {
1618 selection.collapse(point[0], point[1]);
1619 }" did not throw
1620 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 0 [paras[0] .firstChild, -1]
1621 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 1 [paras[0] .firstChild, 0]
1622 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 2 [paras[0] .firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
1623 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 3 [paras[0] .firstChild, 2]
1624 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 4 [paras[0] .firstChild, 8]
1625 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 5 [paras[0] .firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
1626 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 6 [paras[0] .firstChild, 10]
1627 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 7 [paras[0] .firstChild, 65535]
1628 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 8 [paras[1] .firstChild, -1]
1629 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 9 [paras[1] .firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Text node "Ijklmnop
1630 " but got Text node "Qrstuvwx"
1631 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 10 [paras[1 ].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1632 " but got Text node "Qrstuvwx"
1633 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 11 [paras[1 ].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1634 " but got Text node "Qrstuvwx"
1635 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 12 [paras[1 ].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1636 " but got Text node "Qrstuvwx"
1637 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 13 [paras[1 ].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
1638 " but got Text node "Qrstuvwx"
1639 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 14 [paras[1 ].firstChild, 10]
1640 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 15 [paras[1 ].firstChild, 65535]
1641 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1642 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1643 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1644 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 () {
1645 selection.collapse(point[0], point[1]);
1646 }" did not throw
1647 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1648 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1649 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1650 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 () {
1651 selection.collapse(point[0], point[1]);
1652 }" did not throw
1653 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 24 [documen t.documentElement, -1]
1654 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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>
1655 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1656 "
1657 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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>
1658 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1659 "
1660 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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>
1661 <me... but got Text node "Qrstuvwx"
1662 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 28 [documen t.documentElement, 7]
1663 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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>
1664 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1665 "
1666 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1667 </p><p id... but got Text node "Qrstuvwx"
1668 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1669 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1670 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1671 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1672 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1673 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1674 "
1675 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1676 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1677 "
1678 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 37 [paras[0 ], 2]
1679 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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
1680 </p> but got Text node "Qrstuvwx"
1681 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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
1682 </p> but got Text node "Qrstuvwx"
1683 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 40 [paras[1 ], 2]
1684 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1685 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1686 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1687 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1688 "
1689 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1690 </p><p id="b" s... but got Text node "Qrstuvwx"
1691 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 45 [documen t, -1]
1692 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1693 "
1694 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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̈ḧ
1695 "
1696 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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"
1697 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 49 [documen t, 3]
1698 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 50 [comment , -1]
1699 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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"
1700 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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"
1701 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 53 [comment , 96]
1702 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1703 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1704 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1705 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1706 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1707 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 59 [xmlDoc, -1]
1708 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1709 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1710 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 () {
1711 selection.collapse(point[0], point[1]);
1712 }" did not throw
1713 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1714 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1715 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx "
1716 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx "
1717 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx "
1718 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1719 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1720 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 70 [detache dForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1721 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 71 [detache dForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
1722 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 72 [detache dXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1723 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 73 [detache dXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
1724 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1725 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1726 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1727 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 77 [detache dForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1728 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 78 [detache dForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
1729 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 79 [detache dXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--בן חיים אליעזר--> but got Text node "Qrstuv wx"
1730 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1731 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1732 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 "Qrstuvwx"
1733 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 83 [doctype , 0]
1734 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 84 [doctype , -17] 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 }" 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
1737 PASS Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], point 85 [doctype , 1]
1738 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 () {
1739 selection.collapse(point[0], point[1]);
1740 }" did not throw
1741 FAIL Range 8 [paras[1].firstChild, 2, paras[1].firstChild, 9], 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 () {
1742 selection.collapse(point[0], point[1]);
1743 }" did not throw
1744 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 0 [paras[0].firstChild, -1]
1745 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 [paras[0].firstChild, 0]
1746 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we co llapse()d to expected 1 but got 2
1747 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 [paras[0].firstChild, 2]
1748 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 [paras[0].firstChild, 8]
1749 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we co llapse()d to expected 9 but got 10
1750 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 [paras[0].firstChild, 10]
1751 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 [paras[0].firstChild, 65535]
1752 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 [paras[1].firstChild, -1]
1753 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
1754 " but got Text node "Qrstuvwx"
1755 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 0 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
1756 " but got Text node "Qrstuvwx"
1757 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 1 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
1758 " but got Text node "Qrstuvwx"
1759 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 2 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
1760 " but got Text node "Qrstuvwx"
1761 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 3 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
1762 " but got Text node "Qrstuvwx"
1763 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 4 [paras[1].firstChild, 10]
1764 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 5 [paras[1].firstChild, 65535]
1765 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 6 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1766 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 7 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1767 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 8 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1768 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 1 9 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
1769 selection.collapse(point[0], point[1]);
1770 }" did not throw
1771 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 0 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1772 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 1 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1773 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 2 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1774 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 3 [foreignPara1.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 () {
1775 selection.collapse(point[0], point[1]);
1776 }" did not throw
1777 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 4 [document.documentElement, -1]
1778 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 5 [document.documentElement, 0] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tes ts</title>
1779 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1780 "
1781 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 6 [document.documentElement, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tes ts</title>
1782 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1783 "
1784 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 7 [document.documentElement, 2] assert_equals: focusNode must equal the node we collapse()d to expected Element node <html><head><title>Selection.collapse() tes ts</title>
1785 <me... but got Text node "Qrstuvwx"
1786 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 8 [document.documentElement, 7]
1787 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 2 9 [document.head, 1] assert_equals: focusNode must equal the node we collapse()d to expected Element node <head><title>Selection.collapse() tests</title>
1788 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1789 "
1790 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 0 [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̈ḧ
1791 </p><p id... but got Text node "Qrstuvwx"
1792 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 1 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1793 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 2 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1794 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 3 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1795 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 4 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1796 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 5 [paras[0], 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1797 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1798 "
1799 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 6 [paras[0], 1] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1800 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1801 "
1802 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 7 [paras[0], 2]
1803 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 8 [paras[1], 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <p id="b" style="display:none">Ijklmnop
1804 </p> but got Text node "Qrstuvwx"
1805 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 3 9 [paras[1], 1] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <p id="b" style="display:none">Ijklmnop
1806 </p> but got Text node "Qrstuvwx"
1807 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 0 [paras[1], 2]
1808 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 1 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
1809 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 2 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
1810 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 3 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1811 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1812 "
1813 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 4 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to ex pected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1814 </p><p id="b" s... but got Text node "Qrstuvwx"
1815 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 5 [document, -1]
1816 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 6 [document, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1817 "
1818 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 7 [document, 1] assert_equals: focusNode must equal the node we collapse()d to e xpected Document node with 2 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1819 "
1820 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 8 [document, 2] assert_equals: focusNode must equal the node we collapse()d to e xpected Document node with 2 children but got Text node "Qrstuvwx"
1821 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 4 9 [document, 3]
1822 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 0 [comment, -1]
1823 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 1 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1824 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 2 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to ex pected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1825 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 3 [comment, 96]
1826 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 4 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1827 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 5 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1828 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 6 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
1829 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 7 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1830 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 8 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1831 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 5 9 [xmlDoc, -1]
1832 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 0 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1833 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 1 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1834 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 2 [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 () {
1835 selection.collapse(point[0], point[1]);
1836 }" did not throw
1837 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 3 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1838 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 4 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1839 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 5 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
1840 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 6 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
1841 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 7 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
1842 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 8 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1843 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 6 9 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1844 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 0 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1845 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 1 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1846 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 2 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
1847 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 3 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
1848 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 4 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must e qual 1 after collapse() expected 1 but got 0
1849 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 5 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1850 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 6 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1851 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 7 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
1852 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 8 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
1853 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 7 9 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1854 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 0 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1855 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 1 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
1856 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 2 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collaps e() expected 1 but got 0
1857 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 3 [doctype, 0]
1858 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 4 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
1859 selection.collapse(point[0], point[1]);
1860 }" 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
1861 PASS Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 5 [doctype, 1]
1862 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 6 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when colla pse()ing if the node is a DocumentType function "function () {
1863 selection.collapse(point[0], point[1]);
1864 }" did not throw
1865 FAIL Range 9 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 0], point 8 7 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse( )ing if the node is a DocumentType function "function () {
1866 selection.collapse(point[0], point[1]);
1867 }" did not throw
1868 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 0 [paras[0].firstChild, -1]
1869 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 1 [paras[0].firstChild, 0]
1870 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 1 but got 2
1871 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 3 [paras[0].firstChild, 2]
1872 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 4 [paras[0].firstChild, 8]
1873 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 9 but got 10
1874 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 6 [paras[0].firstChild, 10]
1875 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 7 [paras[0].firstChild, 65535]
1876 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 8 [paras[1].firstChild, -1]
1877 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
1878 " but got Text node "Qrstuvwx"
1879 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
1880 " but got Text node "Qrstuvwx"
1881 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
1882 " but got Text node "Qrstuvwx"
1883 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
1884 " but got Text node "Qrstuvwx"
1885 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
1886 " but got Text node "Qrstuvwx"
1887 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 14 [paras[1].firstChild, 10]
1888 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 15 [paras[1].firstChild, 65535]
1889 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1890 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1891 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1892 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when c ollapse()ing if the offset is negative or greater than the node's length functio n "function () {
1893 selection.collapse(point[0], point[1]);
1894 }" did not throw
1895 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1896 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1897 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1898 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
1899 selection.collapse(point[0], point[1]);
1900 }" did not throw
1901 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 24 [document.documentElement, -1]
1902 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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() te sts</title>
1903 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1904 "
1905 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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() te sts</title>
1906 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1907 "
1908 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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() te sts</title>
1909 <me... but got Text node "Qrstuvwx"
1910 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 28 [document.documentElement, 7]
1911 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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>
1912 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1913 "
1914 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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̈ḧ
1915 </p><p id... but got Text node "Qrstuvwx"
1916 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
1917 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
1918 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1919 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1920 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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̈ḧ
1921 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1922 "
1923 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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̈ḧ
1924 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1925 "
1926 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 37 [paras[0], 2]
1927 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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
1928 </p> but got Text node "Qrstuvwx"
1929 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 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
1930 </p> but got Text node "Qrstuvwx"
1931 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 40 [paras[1], 2]
1932 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
1933 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
1934 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1935 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
1936 "
1937 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
1938 </p><p id="b" s... but got Text node "Qrstuvwx"
1939 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 45 [document, -1]
1940 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], 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̈ḧ
1941 "
1942 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], 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̈ḧ
1943 "
1944 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], 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"
1945 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 49 [document, 3]
1946 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 50 [comment, -1]
1947 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1948 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
1949 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 53 [comment, 96]
1950 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
1951 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
1952 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1953 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1954 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1955 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 59 [xmlDoc, -1]
1956 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1957 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1958 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 62 [xmlDoc, 5] 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 () {
1959 selection.collapse(point[0], point[1]);
1960 }" did not throw
1961 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
1962 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
1963 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
1964 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
1965 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
1966 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1967 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1968 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1969 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1970 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
1971 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
1972 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1973 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1974 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
1975 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1976 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
1977 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
1978 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
1979 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
1980 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
1981 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 83 [doctype, 0]
1982 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse( )ing if the node is a DocumentType function "function () {
1983 selection.collapse(point[0], point[1]);
1984 }" 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
1985 PASS Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 85 [doctype, 1]
1986 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
1987 selection.collapse(point[0], point[1]);
1988 }" did not throw
1989 FAIL Range 10 [detachedPara1.firstChild, 0, detachedPara1.firstChild, 1], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
1990 selection.collapse(point[0], point[1]);
1991 }" did not throw
1992 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 0 [paras[0].firstChild, -1]
1993 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 1 [paras[0].firstChild, 0]
1994 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 1 but got 2
1995 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 3 [paras[0].firstChild, 2]
1996 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 4 [paras[0].firstChild, 8]
1997 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 9 but got 10
1998 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 6 [paras[0].firstChild, 10]
1999 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 7 [paras[0].firstChild, 65535]
2000 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 8 [paras[1].firstChild, -1]
2001 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
2002 " but got Text node "Qrstuvwx"
2003 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2004 " but got Text node "Qrstuvwx"
2005 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2006 " but got Text node "Qrstuvwx"
2007 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2008 " but got Text node "Qrstuvwx"
2009 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2010 " but got Text node "Qrstuvwx"
2011 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 14 [paras[1].firstChild, 10]
2012 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 15 [paras[1].firstChild, 65535]
2013 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2014 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2015 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2016 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when c ollapse()ing if the offset is negative or greater than the node's length functio n "function () {
2017 selection.collapse(point[0], point[1]);
2018 }" did not throw
2019 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2020 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2021 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2022 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
2023 selection.collapse(point[0], point[1]);
2024 }" did not throw
2025 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 24 [document.documentElement, -1]
2026 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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() te sts</title>
2027 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2028 "
2029 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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() te sts</title>
2030 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2031 "
2032 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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() te sts</title>
2033 <me... but got Text node "Qrstuvwx"
2034 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 28 [document.documentElement, 7]
2035 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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>
2036 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2037 "
2038 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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̈ḧ
2039 </p><p id... but got Text node "Qrstuvwx"
2040 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
2041 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
2042 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
2043 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
2044 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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̈ḧ
2045 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2046 "
2047 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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̈ḧ
2048 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2049 "
2050 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 37 [paras[0], 2]
2051 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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
2052 </p> but got Text node "Qrstuvwx"
2053 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 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
2054 </p> but got Text node "Qrstuvwx"
2055 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 40 [paras[1], 2]
2056 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2057 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2058 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2059 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2060 "
2061 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2062 </p><p id="b" s... but got Text node "Qrstuvwx"
2063 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 45 [document, -1]
2064 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], 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̈ḧ
2065 "
2066 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], 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̈ḧ
2067 "
2068 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], 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"
2069 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 49 [document, 3]
2070 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 50 [comment, -1]
2071 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2072 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2073 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 53 [comment, 96]
2074 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2075 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2076 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2077 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
2078 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2079 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 59 [xmlDoc, -1]
2080 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2081 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2082 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 62 [xmlDoc, 5] 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 () {
2083 selection.collapse(point[0], point[1]);
2084 }" did not throw
2085 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2086 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2087 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2088 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2089 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2090 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2091 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2092 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2093 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2094 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2095 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2096 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2097 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
2098 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after c ollapse() expected 1 but got 0
2099 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2100 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2101 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
2102 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse( ) expected 1 but got 0
2103 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2104 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
2105 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 83 [doctype, 0]
2106 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 84 [doctype, -17] assert_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 }" 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
2109 PASS Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 85 [doctype, 1]
2110 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
2111 selection.collapse(point[0], point[1]);
2112 }" did not throw
2113 FAIL Range 11 [detachedPara1.firstChild, 2, detachedPara1.firstChild, 8], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
2114 selection.collapse(point[0], point[1]);
2115 }" did not throw
2116 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 0 [paras[0].firstChild, -1]
2117 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 1 [paras[0].firstChild, 0]
2118 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we col lapse()d to expected 1 but got 2
2119 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 3 [paras[0].firstChild, 2]
2120 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 4 [paras[0].firstChild, 8]
2121 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we col lapse()d to expected 9 but got 10
2122 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 6 [paras[0].firstChild, 10]
2123 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 7 [paras[0].firstChild, 65535]
2124 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 8 [paras[1].firstChild, -1]
2125 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Ijklmnop
2126 " but got Text node "Qrstuvwx"
2127 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2128 " but got Text node "Qrstuvwx"
2129 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2130 " but got Text node "Qrstuvwx"
2131 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2132 " but got Text node "Qrstuvwx"
2133 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2134 " but got Text node "Qrstuvwx"
2135 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 14 [paras[1].firstChild, 10]
2136 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 15 [paras[1].firstChild, 65535]
2137 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2138 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2139 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2140 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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 () {
2141 selection.collapse(point[0], point[1]);
2142 }" did not throw
2143 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2144 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2145 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2146 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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 () {
2147 selection.collapse(point[0], point[1]);
2148 }" did not throw
2149 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 24 [document.documentElement, -1]
2150 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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>
2151 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2152 "
2153 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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>
2154 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2155 "
2156 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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>
2157 <me... but got Text node "Qrstuvwx"
2158 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 28 [document.documentElement, 7]
2159 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 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>
2160 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2161 "
2162 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 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̈ḧ
2163 </p><p id... but got Text node "Qrstuvwx"
2164 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2165 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2166 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2167 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2168 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2169 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2170 "
2171 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2172 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2173 "
2174 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 37 [paras[0], 2]
2175 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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
2176 </p> but got Text node "Qrstuvwx"
2177 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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
2178 </p> but got Text node "Qrstuvwx"
2179 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 40 [paras[1], 2]
2180 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2181 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2182 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2183 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2184 "
2185 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2186 </p><p id="b" s... but got Text node "Qrstuvwx"
2187 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 45 [document, -1]
2188 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2189 "
2190 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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̈ḧ
2191 "
2192 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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"
2193 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 49 [document, 3]
2194 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 50 [comment, -1]
2195 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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"
2196 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], 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"
2197 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 53 [comment, 96]
2198 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2199 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2200 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2201 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2202 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2203 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 59 [xmlDoc, -1]
2204 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2205 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2206 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 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 () {
2207 selection.collapse(point[0], point[1]);
2208 }" did not throw
2209 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2210 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2211 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2212 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2213 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2214 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2215 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2216 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2217 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2218 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2219 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2220 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
2221 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2222 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2223 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2224 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2225 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2226 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2227 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2228 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2229 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 83 [doctype, 0]
2230 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()i ng if the node is a DocumentType function "function () {
2231 selection.collapse(point[0], point[1]);
2232 }" 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
2233 PASS Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 85 [doctype, 1]
2234 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collap se()ing if the node is a DocumentType function "function () {
2235 selection.collapse(point[0], point[1]);
2236 }" did not throw
2237 FAIL Range 12 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 0], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
2238 selection.collapse(point[0], point[1]);
2239 }" did not throw
2240 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 0 [paras[0].firstChild, -1]
2241 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 1 [paras[0].firstChild, 0]
2242 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we col lapse()d to expected 1 but got 2
2243 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 3 [paras[0].firstChild, 2]
2244 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 4 [paras[0].firstChild, 8]
2245 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we col lapse()d to expected 9 but got 10
2246 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 6 [paras[0].firstChild, 10]
2247 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 7 [paras[0].firstChild, 65535]
2248 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 8 [paras[1].firstChild, -1]
2249 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Ijklmnop
2250 " but got Text node "Qrstuvwx"
2251 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2252 " but got Text node "Qrstuvwx"
2253 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2254 " but got Text node "Qrstuvwx"
2255 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2256 " but got Text node "Qrstuvwx"
2257 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2258 " but got Text node "Qrstuvwx"
2259 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 14 [paras[1].firstChild, 10]
2260 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 15 [paras[1].firstChild, 65535]
2261 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2262 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2263 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2264 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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 () {
2265 selection.collapse(point[0], point[1]);
2266 }" did not throw
2267 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2268 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2269 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2270 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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 () {
2271 selection.collapse(point[0], point[1]);
2272 }" did not throw
2273 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 24 [document.documentElement, -1]
2274 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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>
2275 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2276 "
2277 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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>
2278 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2279 "
2280 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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>
2281 <me... but got Text node "Qrstuvwx"
2282 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 28 [document.documentElement, 7]
2283 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 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>
2284 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2285 "
2286 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 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̈ḧ
2287 </p><p id... but got Text node "Qrstuvwx"
2288 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2289 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2290 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2291 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2292 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2293 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2294 "
2295 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2296 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2297 "
2298 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 37 [paras[0], 2]
2299 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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
2300 </p> but got Text node "Qrstuvwx"
2301 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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
2302 </p> but got Text node "Qrstuvwx"
2303 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 40 [paras[1], 2]
2304 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2305 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2306 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2307 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2308 "
2309 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2310 </p><p id="b" s... but got Text node "Qrstuvwx"
2311 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 45 [document, -1]
2312 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2313 "
2314 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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̈ḧ
2315 "
2316 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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"
2317 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 49 [document, 3]
2318 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 50 [comment, -1]
2319 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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"
2320 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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"
2321 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 53 [comment, 96]
2322 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2323 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2324 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2325 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2326 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2327 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 59 [xmlDoc, -1]
2328 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2329 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2330 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], 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 () {
2331 selection.collapse(point[0], point[1]);
2332 }" did not throw
2333 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2334 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2335 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2336 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2337 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2338 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2339 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2340 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2341 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2342 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2343 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2344 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
2345 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2346 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2347 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2348 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2349 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2350 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2351 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2352 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2353 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 83 [doctype, 0]
2354 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()i ng if the node is a DocumentType function "function () {
2355 selection.collapse(point[0], point[1]);
2356 }" 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
2357 PASS Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 85 [doctype, 1]
2358 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collap se()ing if the node is a DocumentType function "function () {
2359 selection.collapse(point[0], point[1]);
2360 }" did not throw
2361 FAIL Range 13 [foreignPara1.firstChild, 0, foreignPara1.firstChild, 1], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
2362 selection.collapse(point[0], point[1]);
2363 }" did not throw
2364 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 0 [paras[0].firstChild, -1]
2365 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 1 [paras[0].firstChild, 0]
2366 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we col lapse()d to expected 1 but got 2
2367 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 3 [paras[0].firstChild, 2]
2368 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 4 [paras[0].firstChild, 8]
2369 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we col lapse()d to expected 9 but got 10
2370 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 6 [paras[0].firstChild, 10]
2371 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 7 [paras[0].firstChild, 65535]
2372 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 8 [paras[1].firstChild, -1]
2373 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Ijklmnop
2374 " but got Text node "Qrstuvwx"
2375 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2376 " but got Text node "Qrstuvwx"
2377 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2378 " but got Text node "Qrstuvwx"
2379 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2380 " but got Text node "Qrstuvwx"
2381 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collap se()d to expected Text node "Ijklmnop
2382 " but got Text node "Qrstuvwx"
2383 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 14 [paras[1].firstChild, 10]
2384 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 15 [paras[1].firstChild, 65535]
2385 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2386 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2387 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2388 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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 () {
2389 selection.collapse(point[0], point[1]);
2390 }" did not throw
2391 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2392 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2393 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2394 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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 () {
2395 selection.collapse(point[0], point[1]);
2396 }" did not throw
2397 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 24 [document.documentElement, -1]
2398 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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>
2399 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2400 "
2401 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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>
2402 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2403 "
2404 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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>
2405 <me... but got Text node "Qrstuvwx"
2406 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 28 [document.documentElement, 7]
2407 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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>
2408 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2409 "
2410 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2411 </p><p id... but got Text node "Qrstuvwx"
2412 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2413 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2414 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2415 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2416 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2417 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2418 "
2419 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2420 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2421 "
2422 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 37 [paras[0], 2]
2423 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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
2424 </p> but got Text node "Qrstuvwx"
2425 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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
2426 </p> but got Text node "Qrstuvwx"
2427 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 40 [paras[1], 2]
2428 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2429 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
2430 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2431 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2432 "
2433 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2434 </p><p id="b" s... but got Text node "Qrstuvwx"
2435 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 45 [document, -1]
2436 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2437 "
2438 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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̈ḧ
2439 "
2440 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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"
2441 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 49 [document, 3]
2442 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 50 [comment, -1]
2443 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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"
2444 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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"
2445 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 53 [comment, 96]
2446 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2447 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2448 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2449 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2450 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2451 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 59 [xmlDoc, -1]
2452 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2453 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
2454 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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 () {
2455 selection.collapse(point[0], point[1]);
2456 }" did not throw
2457 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2458 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2459 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2460 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2461 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
2462 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2463 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
2464 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2465 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equal 1 a fter collapse() expected 1 but got 0
2466 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2467 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2468 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
2469 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2470 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 after col lapse() expected 1 but got 0
2471 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2472 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
2473 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2474 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
2475 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
2476 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
2477 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 83 [doctype, 0]
2478 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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 () {
2479 selection.collapse(point[0], point[1]);
2480 }" 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
2481 PASS Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 85 [doctype, 1]
2482 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 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 () {
2483 selection.collapse(point[0], point[1]);
2484 }" did not throw
2485 FAIL Range 14 [foreignPara1.firstChild, 2, foreignPara1.firstChild, 8], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse() ing if the node is a DocumentType function "function () {
2486 selection.collapse(point[0], point[1]);
2487 }" did not throw
2488 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 0 [paras[0].firstChild, -1]
2489 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 1 [paras[0].firstChild, 0]
2490 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 1 but got 2
2491 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 3 [paras[0].firstChild, 2]
2492 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 4 [paras[0].firstChild, 8]
2493 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 9 but got 10
2494 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 6 [paras[0].firstChild, 10]
2495 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 7 [paras[0].firstChild, 65535]
2496 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 8 [paras[1].firstChild, -1]
2497 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
2498 " but got Text node "Qrstuvwx"
2499 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2500 " but got Text node "Qrstuvwx"
2501 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2502 " but got Text node "Qrstuvwx"
2503 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2504 " but got Text node "Qrstuvwx"
2505 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2506 " but got Text node "Qrstuvwx"
2507 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 14 [paras[1].firstChild, 10]
2508 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 15 [paras[1].firstChild, 65535]
2509 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 16 [detachedPara1.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̈h ̈
2510 "
2511 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 17 [detachedPara1.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̈h ̈
2512 "
2513 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 18 [detachedPara1.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̈h ̈
2514 "
2515 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when c ollapse()ing if the offset is negative or greater than the node's length functio n "function () {
2516 selection.collapse(point[0], point[1]);
2517 }" did not throw
2518 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 20 [foreignPara1.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̈ḧ
2519 "
2520 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 21 [foreignPara1.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̈ḧ
2521 "
2522 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 22 [foreignPara1.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̈ḧ
2523 "
2524 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
2525 selection.collapse(point[0], point[1]);
2526 }" did not throw
2527 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 24 [document.documentElement, -1]
2528 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2529 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2530 "
2531 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2532 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2533 "
2534 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2535 <me... but got Text node "Qrstuvwx"
2536 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 28 [document.documentElement, 7]
2537 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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>
2538 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2539 "
2540 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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̈ḧ
2541 </p><p id... but got Text node "Qrstuvwx"
2542 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2543 "
2544 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2545 "
2546 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 33 [foreignDoc.head, 0] assert_equals: focusNode must equal the node we collapse ()d to expected Element node <head><title></title></head> but got Text node "Äb ̈c̈d̈ëf̈g̈ḧ
2547 "
2548 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 34 [foreignDoc.body, 1] assert_equals: 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 "Äb̈c̈d̈ëf̈g̈ḧ
2549 "
2550 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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̈ḧ
2551 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2552 "
2553 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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̈ḧ
2554 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2555 "
2556 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 37 [paras[0], 2]
2557 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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
2558 </p> but got Text node "Qrstuvwx"
2559 FAIL Range 15 [document.documentElement, 0, document.documentElement, 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
2560 </p> but got Text node "Qrstuvwx"
2561 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 40 [paras[1], 2]
2562 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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̈ḧ
2563 "
2564 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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̈ḧ
2565 "
2566 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2567 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2568 "
2569 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2570 </p><p id="b" s... but got Text node "Qrstuvwx"
2571 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 45 [document, -1]
2572 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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̈ḧ
2573 "
2574 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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̈ḧ
2575 "
2576 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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"
2577 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 49 [document, 3]
2578 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 50 [comment, -1]
2579 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2580 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2581 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 53 [comment, 96]
2582 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2583 "
2584 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2585 "
2586 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 56 [foreignComment, 2] assert_equals: focusNode must equal the node we collapse( )d to expected Comment node <!--"Commenter" and "commentator" mean different thi ngs. I'v...--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2587 "
2588 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], 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̈ḧ
2589 "
2590 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 58 [foreignTextNode, 36] assert_equals: focusNode must equal the node we collaps e()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̈ḧ
2591 "
2592 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 59 [xmlDoc, -1]
2593 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 60 [xmlDoc, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2594 "
2595 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 61 [xmlDoc, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2596 "
2597 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 62 [xmlDoc, 5] 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 () {
2598 selection.collapse(point[0], point[1]);
2599 }" did not throw
2600 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2601 "
2602 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2603 "
2604 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 65 [processingInstruction, 0] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Äb̈c̈d̈ëf̈g̈ḧ
2605 "
2606 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 66 [processingInstruction, 5] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Äb̈c̈d̈ëf̈g̈ḧ
2607 "
2608 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 67 [processingInstruction, 9] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Äb̈c̈d̈ëf̈g̈ḧ
2609 "
2610 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2611 "
2612 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2613 "
2614 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 70 [detachedForeignTextNode, 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̈ḧ
2615 "
2616 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 71 [detachedForeignTextNode, 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̈ḧ
2617 "
2618 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 72 [detachedXmlTextNode, 0] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2619 "
2620 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 73 [detachedXmlTextNode, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2621 "
2622 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 74 [detachedProcessingInstruction, 12] assert_equals: focusNode must equal the n ode we collapse()d to expected ProcessingInstruction node with target "whippoorw ill" and data "chirp chirp chirp" but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2623 "
2624 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 75 [detachedComment, 3] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2625 "
2626 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 76 [detachedComment, 5] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2627 "
2628 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 77 [detachedForeignComment, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2629 "
2630 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 78 [detachedForeignComment, 4] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2631 "
2632 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 79 [detachedXmlComment, 2] assert_equals: focusNode must equal the node we colla pse()d to expected Comment node <!--בן חיים אליעזר--> but got Text n ode "Äb̈c̈d̈ëf̈g̈ḧ
2633 "
2634 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 80 [docfrag, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈g̈h ̈
2635 "
2636 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 81 [foreignDocfrag, 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̈ḧ
2637 "
2638 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d t o expected DocumentFragment node with 0 children but got Text node "Äb̈c̈d̈ëf̈ g̈ḧ
2639 "
2640 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 83 [doctype, 0]
2641 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse( )ing if the node is a DocumentType function "function () {
2642 selection.collapse(point[0], point[1]);
2643 }" 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
2644 PASS Range 15 [document.documentElement, 0, document.documentElement, 1], point 85 [doctype, 1]
2645 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
2646 selection.collapse(point[0], point[1]);
2647 }" did not throw
2648 FAIL Range 15 [document.documentElement, 0, document.documentElement, 1], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
2649 selection.collapse(point[0], point[1]);
2650 }" did not throw
2651 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 0 [paras[0].firstChild, -1]
2652 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 1 [paras[0].firstChild, 0]
2653 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 1 but got 2
2654 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 3 [paras[0].firstChild, 2]
2655 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 4 [paras[0].firstChild, 8]
2656 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 9 but got 10
2657 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 6 [paras[0].firstChild, 10]
2658 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 7 [paras[0].firstChild, 65535]
2659 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 8 [paras[1].firstChild, -1]
2660 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
2661 " but got Text node "Qrstuvwx"
2662 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2663 " but got Text node "Qrstuvwx"
2664 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2665 " but got Text node "Qrstuvwx"
2666 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2667 " but got Text node "Qrstuvwx"
2668 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2669 " but got Text node "Qrstuvwx"
2670 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 14 [paras[1].firstChild, 10]
2671 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 15 [paras[1].firstChild, 65535]
2672 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2673 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2674 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2675 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when c ollapse()ing if the offset is negative or greater than the node's length functio n "function () {
2676 selection.collapse(point[0], point[1]);
2677 }" did not throw
2678 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 20 [foreignPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2679 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 21 [foreignPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2680 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 22 [foreignPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2681 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
2682 selection.collapse(point[0], point[1]);
2683 }" did not throw
2684 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 24 [document.documentElement, -1]
2685 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2686 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2687 "
2688 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2689 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2690 "
2691 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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() te sts</title>
2692 <me... but got Text node "Qrstuvwx"
2693 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 28 [document.documentElement, 7]
2694 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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>
2695 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2696 "
2697 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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̈ḧ
2698 </p><p id... but got Text node "Qrstuvwx"
2699 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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"
2700 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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"
2701 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 33 [foreignDoc.head, 0] assert_equals: focusNode must equal the node we collapse ()d to expected Element node <head><title></title></head> but got Text node "Qrs tuvwx"
2702 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 34 [foreignDoc.body, 1] assert_equals: 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 "Qrstuvwx"
2703 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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̈ḧ
2704 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2705 "
2706 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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̈ḧ
2707 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2708 "
2709 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 37 [paras[0], 2]
2710 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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
2711 </p> but got Text node "Qrstuvwx"
2712 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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
2713 </p> but got Text node "Qrstuvwx"
2714 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 40 [paras[1], 2]
2715 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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"
2716 FAIL Range 16 [document.documentElement, 0, document.documentElement, 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"
2717 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2718 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2719 "
2720 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2721 </p><p id="b" s... but got Text node "Qrstuvwx"
2722 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 45 [document, -1]
2723 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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̈ḧ
2724 "
2725 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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̈ḧ
2726 "
2727 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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"
2728 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 49 [document, 3]
2729 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 50 [comment, -1]
2730 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2731 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2732 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 53 [comment, 96]
2733 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Qrstuvwx"
2734 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Qrstuvwx"
2735 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 56 [foreignComment, 2] assert_equals: focusNode must equal the node we collapse( )d to expected Comment node <!--"Commenter" and "commentator" mean different thi ngs. I'v...--> but got Text node "Qrstuvwx"
2736 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], 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 "Qrstuvwx"
2737 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 58 [foreignTextNode, 36] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
2738 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 59 [xmlDoc, -1]
2739 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 60 [xmlDoc, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Qrstuvwx"
2740 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 61 [xmlDoc, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Qrstuvwx"
2741 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 62 [xmlDoc, 5] 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 () {
2742 selection.collapse(point[0], point[1]);
2743 }" did not throw
2744 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Qrstuvwx"
2745 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Qrstuvwx"
2746 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 65 [processingInstruction, 0] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2747 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 66 [processingInstruction, 5] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2748 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 67 [processingInstruction, 9] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2749 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
2750 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
2751 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 70 [detachedForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
2752 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 71 [detachedForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
2753 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 72 [detachedXmlTextNode, 0] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
2754 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 73 [detachedXmlTextNode, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
2755 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 74 [detachedProcessingInstruction, 12] assert_equals: focusNode must equal the n ode we collapse()d to expected ProcessingInstruction node with target "whippoorw ill" and data "chirp chirp chirp" but got Text node "Qrstuvwx"
2756 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 75 [detachedComment, 3] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
2757 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 76 [detachedComment, 5] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
2758 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 77 [detachedForeignComment, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
2759 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 78 [detachedForeignComment, 4] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
2760 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 79 [detachedXmlComment, 2] assert_equals: focusNode must equal the node we colla pse()d to expected Comment node <!--בן חיים אליעזר--> but got Text n ode "Qrstuvwx"
2761 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 80 [docfrag, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
2762 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 81 [foreignDocfrag, 0] assert_equals: focusNode must equal the node we collapse( )d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx "
2763 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d t o expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
2764 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 83 [doctype, 0]
2765 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse( )ing if the node is a DocumentType function "function () {
2766 selection.collapse(point[0], point[1]);
2767 }" 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
2768 PASS Range 16 [document.documentElement, 0, document.documentElement, 2], point 85 [doctype, 1]
2769 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
2770 selection.collapse(point[0], point[1]);
2771 }" did not throw
2772 FAIL Range 16 [document.documentElement, 0, document.documentElement, 2], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
2773 selection.collapse(point[0], point[1]);
2774 }" did not throw
2775 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 0 [paras[0].firstChild, -1]
2776 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 1 [paras[0].firstChild, 0]
2777 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 1 but got 2
2778 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 3 [paras[0].firstChild, 2]
2779 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 4 [paras[0].firstChild, 8]
2780 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we c ollapse()d to expected 9 but got 10
2781 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 6 [paras[0].firstChild, 10]
2782 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 7 [paras[0].firstChild, 65535]
2783 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 8 [paras[1].firstChild, -1]
2784 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we colla pse()d to expected Text node "Ijklmnop
2785 " but got Text node "Qrstuvwx"
2786 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2787 " but got Text node "Qrstuvwx"
2788 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2789 " but got Text node "Qrstuvwx"
2790 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2791 " but got Text node "Qrstuvwx"
2792 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Ijklmnop
2793 " but got Text node "Qrstuvwx"
2794 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 14 [paras[1].firstChild, 10]
2795 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 15 [paras[1].firstChild, 65535]
2796 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 16 [detachedPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2797 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 17 [detachedPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2798 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 18 [detachedPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Opqrstuv" but got Text node "Qrstuvwx"
2799 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when c ollapse()ing if the offset is negative or greater than the node's length functio n "function () {
2800 selection.collapse(point[0], point[1]);
2801 }" did not throw
2802 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 20 [foreignPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2803 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 21 [foreignPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2804 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 22 [foreignPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Efghijkl" but got Text node "Qrstuvwx"
2805 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR when co llapse()ing if the offset is negative or greater than the node's length function "function () {
2806 selection.collapse(point[0], point[1]);
2807 }" did not throw
2808 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 24 [document.documentElement, -1]
2809 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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() te sts</title>
2810 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2811 "
2812 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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() te sts</title>
2813 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2814 "
2815 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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() te sts</title>
2816 <me... but got Text node "Qrstuvwx"
2817 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 28 [document.documentElement, 7]
2818 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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>
2819 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2820 "
2821 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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̈ḧ
2822 </p><p id... but got Text node "Qrstuvwx"
2823 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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"
2824 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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"
2825 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 33 [foreignDoc.head, 0] assert_equals: focusNode must equal the node we collapse ()d to expected Element node <head><title></title></head> but got Text node "Qrs tuvwx"
2826 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 34 [foreignDoc.body, 1] assert_equals: 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 "Qrstuvwx"
2827 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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̈ḧ
2828 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2829 "
2830 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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̈ḧ
2831 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2832 "
2833 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 37 [paras[0], 2]
2834 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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
2835 </p> but got Text node "Qrstuvwx"
2836 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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
2837 </p> but got Text node "Qrstuvwx"
2838 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 40 [paras[1], 2]
2839 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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"
2840 FAIL Range 17 [document.documentElement, 1, document.documentElement, 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"
2841 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 43 [testDiv, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2842 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2843 "
2844 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 44 [testDiv, 3] assert_equals: focusNode must equal the node we collapse()d to e xpected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
2845 </p><p id="b" s... but got Text node "Qrstuvwx"
2846 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 45 [document, -1]
2847 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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̈ḧ
2848 "
2849 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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̈ḧ
2850 "
2851 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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"
2852 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 49 [document, 3]
2853 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 50 [comment, -1]
2854 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2855 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to e xpected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
2856 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 53 [comment, 96]
2857 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 54 [foreignDoc, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Qrstuvwx"
2858 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 55 [foreignDoc, 1] assert_equals: focusNode must equal the node we collapse()d t o expected Document node with 3 children but got Text node "Qrstuvwx"
2859 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 56 [foreignComment, 2] assert_equals: focusNode must equal the node we collapse( )d to expected Comment node <!--"Commenter" and "commentator" mean different thi ngs. I'v...--> but got Text node "Qrstuvwx"
2860 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], 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 "Qrstuvwx"
2861 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 58 [foreignTextNode, 36] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "I admit that I harbor doubts about whether we really need..." but got Text node "Qrstuvwx"
2862 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 59 [xmlDoc, -1]
2863 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 60 [xmlDoc, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Qrstuvwx"
2864 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 61 [xmlDoc, 1] assert_equals: focusNode must equal the node we collapse()d to ex pected Document node with 4 children but got Text node "Qrstuvwx"
2865 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 62 [xmlDoc, 5] 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 () {
2866 selection.collapse(point[0], point[1]);
2867 }" did not throw
2868 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 63 [xmlComment, 0] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Qrstuvwx"
2869 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 64 [xmlComment, 4] assert_equals: focusNode must equal the node we collapse()d t o expected Comment node <!--I maliciously created a comment that will break inca utiou...--> but got Text node "Qrstuvwx"
2870 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 65 [processingInstruction, 0] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2871 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 66 [processingInstruction, 5] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2872 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 67 [processingInstruction, 9] assert_equals: focusNode must equal the node we co llapse()d to expected ProcessingInstruction node with target "somePI" and data " Did you know that \":syn sync fromstart\" is very useful wh..." but got Text nod e "Qrstuvwx"
2873 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
2874 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collaps e()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
2875 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 70 [detachedForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
2876 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 71 [detachedForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Cdefghij" but got Text node "Qrstuvwx"
2877 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 72 [detachedXmlTextNode, 0] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
2878 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 73 [detachedXmlTextNode, 8] assert_equals: focusNode must equal the node we coll apse()d to expected Text node "Klmnopqr" but got Text node "Qrstuvwx"
2879 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 74 [detachedProcessingInstruction, 12] assert_equals: focusNode must equal the n ode we collapse()d to expected ProcessingInstruction node with target "whippoorw ill" and data "chirp chirp chirp" but got Text node "Qrstuvwx"
2880 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 75 [detachedComment, 3] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
2881 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 76 [detachedComment, 5] assert_equals: focusNode must equal the node we collapse ()d to expected Comment node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
2882 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 77 [detachedForeignComment, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
2883 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 78 [detachedForeignComment, 4] assert_equals: focusNode must equal the node we c ollapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
2884 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 79 [detachedXmlComment, 2] assert_equals: focusNode must equal the node we colla pse()d to expected Comment node <!--בן חיים אליעזר--> but got Text n ode "Qrstuvwx"
2885 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 80 [docfrag, 0] assert_equals: focusNode must equal the node we collapse()d to e xpected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
2886 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 81 [foreignDocfrag, 0] assert_equals: focusNode must equal the node we collapse( )d to expected DocumentFragment node with 0 children but got Text node "Qrstuvwx "
2887 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 82 [xmlDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d t o expected DocumentFragment node with 0 children but got Text node "Qrstuvwx"
2888 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 83 [doctype, 0]
2889 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse( )ing if the node is a DocumentType function "function () {
2890 selection.collapse(point[0], point[1]);
2891 }" 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
2892 PASS Range 17 [document.documentElement, 1, document.documentElement, 2], point 85 [doctype, 1]
2893 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
2894 selection.collapse(point[0], point[1]);
2895 }" did not throw
2896 FAIL Range 17 [document.documentElement, 1, document.documentElement, 2], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse ()ing if the node is a DocumentType function "function () {
2897 selection.collapse(point[0], point[1]);
2898 }" did not throw
2899 PASS Range 18 [document.head, 1, document.head, 1], point 0 [paras[0].firstChild , -1]
2900 PASS Range 18 [document.head, 1, document.head, 1], point 1 [paras[0].firstChild , 0]
2901 FAIL Range 18 [document.head, 1, document.head, 1], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
2902 PASS Range 18 [document.head, 1, document.head, 1], point 3 [paras[0].firstChild , 2]
2903 PASS Range 18 [document.head, 1, document.head, 1], point 4 [paras[0].firstChild , 8]
2904 FAIL Range 18 [document.head, 1, document.head, 1], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
2905 PASS Range 18 [document.head, 1, document.head, 1], point 6 [paras[0].firstChild , 10]
2906 PASS Range 18 [document.head, 1, document.head, 1], point 7 [paras[0].firstChild , 65535]
2907 PASS Range 18 [document.head, 1, document.head, 1], point 8 [paras[1].firstChild , -1]
2908 FAIL Range 18 [document.head, 1, document.head, 1], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
2909 " but got Text node "Qrstuvwx"
2910 FAIL Range 18 [document.head, 1, document.head, 1], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
2911 " but got Text node "Qrstuvwx"
2912 FAIL Range 18 [document.head, 1, document.head, 1], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
2913 " but got Text node "Qrstuvwx"
2914 FAIL Range 18 [document.head, 1, document.head, 1], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
2915 " but got Text node "Qrstuvwx"
2916 FAIL Range 18 [document.head, 1, document.head, 1], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
2917 " but got Text node "Qrstuvwx"
2918 PASS Range 18 [document.head, 1, document.head, 1], point 14 [paras[1].firstChil d, 10]
2919 PASS Range 18 [document.head, 1, document.head, 1], point 15 [paras[1].firstChil d, 65535]
2920 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2921 "
2922 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2923 "
2924 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2925 "
2926 FAIL Range 18 [document.head, 1, document.head, 1], 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 () {
2927 selection.collapse(point[0], point[1]);
2928 }" did not throw
2929 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2930 "
2931 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2932 "
2933 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2934 "
2935 FAIL Range 18 [document.head, 1, document.head, 1], 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 () {
2936 selection.collapse(point[0], point[1]);
2937 }" did not throw
2938 PASS Range 18 [document.head, 1, document.head, 1], point 24 [document.documentE lement, -1]
2939 FAIL Range 18 [document.head, 1, document.head, 1], 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>
2940 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2941 "
2942 FAIL Range 18 [document.head, 1, document.head, 1], 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>
2943 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2944 "
2945 FAIL Range 18 [document.head, 1, document.head, 1], 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>
2946 <me... but got Text node "Qrstuvwx"
2947 PASS Range 18 [document.head, 1, document.head, 1], point 28 [document.documentE lement, 7]
2948 FAIL Range 18 [document.head, 1, document.head, 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>
2949 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2950 "
2951 FAIL Range 18 [document.head, 1, document.head, 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̈ḧ
2952 </p><p id... but got Text node "Qrstuvwx"
2953 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2954 "
2955 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2956 "
2957 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2958 "
2959 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2960 "
2961 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2962 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2963 "
2964 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2965 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2966 "
2967 PASS Range 18 [document.head, 1, document.head, 1], point 37 [paras[0], 2]
2968 FAIL Range 18 [document.head, 1, document.head, 1], 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
2969 </p> but got Text node "Qrstuvwx"
2970 FAIL Range 18 [document.head, 1, document.head, 1], 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
2971 </p> but got Text node "Qrstuvwx"
2972 PASS Range 18 [document.head, 1, document.head, 1], point 40 [paras[1], 2]
2973 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2974 "
2975 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2976 "
2977 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2978 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
2979 "
2980 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2981 </p><p id="b" s... but got Text node "Qrstuvwx"
2982 PASS Range 18 [document.head, 1, document.head, 1], point 45 [document, -1]
2983 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2984 "
2985 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
2986 "
2987 FAIL Range 18 [document.head, 1, document.head, 1], 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"
2988 PASS Range 18 [document.head, 1, document.head, 1], point 49 [document, 3]
2989 PASS Range 18 [document.head, 1, document.head, 1], point 50 [comment, -1]
2990 FAIL Range 18 [document.head, 1, document.head, 1], 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"
2991 FAIL Range 18 [document.head, 1, document.head, 1], 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"
2992 PASS Range 18 [document.head, 1, document.head, 1], point 53 [comment, 96]
2993 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2994 "
2995 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2996 "
2997 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
2998 "
2999 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3000 "
3001 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3002 "
3003 PASS Range 18 [document.head, 1, document.head, 1], point 59 [xmlDoc, -1]
3004 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3005 "
3006 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3007 "
3008 FAIL Range 18 [document.head, 1, document.head, 1], 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 () {
3009 selection.collapse(point[0], point[1]);
3010 }" did not throw
3011 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3012 "
3013 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3014 "
3015 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3016 "
3017 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3018 "
3019 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3020 "
3021 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
3022 "
3023 FAIL Range 18 [document.head, 1, document.head, 1], 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̈ḧ
3024 "
3025 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3026 "
3027 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3028 "
3029 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3030 "
3031 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3032 "
3033 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3034 "
3035 FAIL Range 18 [document.head, 1, document.head, 1], point 75 [detachedComment, 3 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3036 "
3037 FAIL Range 18 [document.head, 1, document.head, 1], point 76 [detachedComment, 5 ] assert_equals: focusNode must equal the node we collapse()d to expected Commen t node <!--Stuvwxyz--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3038 "
3039 FAIL Range 18 [document.head, 1, document.head, 1], point 77 [detachedForeignCom ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3040 "
3041 FAIL Range 18 [document.head, 1, document.head, 1], point 78 [detachedForeignCom ment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3042 "
3043 FAIL Range 18 [document.head, 1, document.head, 1], point 79 [detachedXmlComment , 2] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--בן חיים אליעזר--> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3044 "
3045 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3046 "
3047 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3048 "
3049 FAIL Range 18 [document.head, 1, document.head, 1], 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 "Äb̈c̈d̈ëf̈g̈ḧ
3050 "
3051 PASS Range 18 [document.head, 1, document.head, 1], point 83 [doctype, 0]
3052 FAIL Range 18 [document.head, 1, document.head, 1], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3053 selection.collapse(point[0], point[1]);
3054 }" 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
3055 PASS Range 18 [document.head, 1, document.head, 1], point 85 [doctype, 1]
3056 FAIL Range 18 [document.head, 1, document.head, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3057 selection.collapse(point[0], point[1]);
3058 }" did not throw
3059 FAIL Range 18 [document.head, 1, document.head, 1], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3060 selection.collapse(point[0], point[1]);
3061 }" did not throw
3062 PASS Range 19 [document.body, 0, document.body, 1], point 0 [paras[0].firstChild , -1]
3063 PASS Range 19 [document.body, 0, document.body, 1], point 1 [paras[0].firstChild , 0]
3064 FAIL Range 19 [document.body, 0, document.body, 1], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3065 PASS Range 19 [document.body, 0, document.body, 1], point 3 [paras[0].firstChild , 2]
3066 PASS Range 19 [document.body, 0, document.body, 1], point 4 [paras[0].firstChild , 8]
3067 FAIL Range 19 [document.body, 0, document.body, 1], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3068 PASS Range 19 [document.body, 0, document.body, 1], point 6 [paras[0].firstChild , 10]
3069 PASS Range 19 [document.body, 0, document.body, 1], point 7 [paras[0].firstChild , 65535]
3070 PASS Range 19 [document.body, 0, document.body, 1], point 8 [paras[1].firstChild , -1]
3071 FAIL Range 19 [document.body, 0, document.body, 1], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
3072 " but got Text node "Qrstuvwx"
3073 FAIL Range 19 [document.body, 0, document.body, 1], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3074 " but got Text node "Qrstuvwx"
3075 FAIL Range 19 [document.body, 0, document.body, 1], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3076 " but got Text node "Qrstuvwx"
3077 FAIL Range 19 [document.body, 0, document.body, 1], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3078 " but got Text node "Qrstuvwx"
3079 FAIL Range 19 [document.body, 0, document.body, 1], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3080 " but got Text node "Qrstuvwx"
3081 PASS Range 19 [document.body, 0, document.body, 1], point 14 [paras[1].firstChil d, 10]
3082 PASS Range 19 [document.body, 0, document.body, 1], point 15 [paras[1].firstChil d, 65535]
3083 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3084 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3085 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3086 FAIL Range 19 [document.body, 0, document.body, 1], 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 () {
3087 selection.collapse(point[0], point[1]);
3088 }" did not throw
3089 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3090 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3091 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3092 FAIL Range 19 [document.body, 0, document.body, 1], 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 () {
3093 selection.collapse(point[0], point[1]);
3094 }" did not throw
3095 PASS Range 19 [document.body, 0, document.body, 1], point 24 [document.documentE lement, -1]
3096 FAIL Range 19 [document.body, 0, document.body, 1], 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>
3097 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3098 "
3099 FAIL Range 19 [document.body, 0, document.body, 1], 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>
3100 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3101 "
3102 FAIL Range 19 [document.body, 0, document.body, 1], 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>
3103 <me... but got Text node "Qrstuvwx"
3104 PASS Range 19 [document.body, 0, document.body, 1], point 28 [document.documentE lement, 7]
3105 FAIL Range 19 [document.body, 0, document.body, 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>
3106 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3107 "
3108 FAIL Range 19 [document.body, 0, document.body, 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̈ḧ
3109 </p><p id... but got Text node "Qrstuvwx"
3110 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3111 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3112 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3113 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3114 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3115 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3116 "
3117 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3118 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3119 "
3120 PASS Range 19 [document.body, 0, document.body, 1], point 37 [paras[0], 2]
3121 FAIL Range 19 [document.body, 0, document.body, 1], 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
3122 </p> but got Text node "Qrstuvwx"
3123 FAIL Range 19 [document.body, 0, document.body, 1], 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
3124 </p> but got Text node "Qrstuvwx"
3125 PASS Range 19 [document.body, 0, document.body, 1], point 40 [paras[1], 2]
3126 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3127 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3128 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3129 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3130 "
3131 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3132 </p><p id="b" s... but got Text node "Qrstuvwx"
3133 PASS Range 19 [document.body, 0, document.body, 1], point 45 [document, -1]
3134 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3135 "
3136 FAIL Range 19 [document.body, 0, document.body, 1], 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̈ḧ
3137 "
3138 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3139 PASS Range 19 [document.body, 0, document.body, 1], point 49 [document, 3]
3140 PASS Range 19 [document.body, 0, document.body, 1], point 50 [comment, -1]
3141 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3142 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3143 PASS Range 19 [document.body, 0, document.body, 1], point 53 [comment, 96]
3144 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3145 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3146 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3147 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3148 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3149 PASS Range 19 [document.body, 0, document.body, 1], point 59 [xmlDoc, -1]
3150 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3151 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3152 FAIL Range 19 [document.body, 0, document.body, 1], 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 () {
3153 selection.collapse(point[0], point[1]);
3154 }" did not throw
3155 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3156 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3157 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3158 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3159 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3160 FAIL Range 19 [document.body, 0, document.body, 1], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
3161 FAIL Range 19 [document.body, 0, document.body, 1], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
3162 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3163 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3164 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3165 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3166 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3167 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3168 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3169 FAIL Range 19 [document.body, 0, document.body, 1], point 77 [detachedForeignCom ment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
3170 FAIL Range 19 [document.body, 0, document.body, 1], point 78 [detachedForeignCom ment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
3171 FAIL Range 19 [document.body, 0, document.body, 1], point 79 [detachedXmlComment , 2] assert_equals: focusNode must equal the node we collapse()d to expected Com ment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
3172 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3173 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3174 FAIL Range 19 [document.body, 0, document.body, 1], 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"
3175 PASS Range 19 [document.body, 0, document.body, 1], point 83 [doctype, 0]
3176 FAIL Range 19 [document.body, 0, document.body, 1], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3177 selection.collapse(point[0], point[1]);
3178 }" 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
3179 PASS Range 19 [document.body, 0, document.body, 1], point 85 [doctype, 1]
3180 FAIL Range 19 [document.body, 0, document.body, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3181 selection.collapse(point[0], point[1]);
3182 }" did not throw
3183 FAIL Range 19 [document.body, 0, document.body, 1], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3184 selection.collapse(point[0], point[1]);
3185 }" did not throw
3186 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 0 [paras[0].firstChild, -1]
3187 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 1 [paras[0].firstChild, 0]
3188 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 2 [paras[0].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3189 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 3 [paras[0].firstChild, 2]
3190 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 4 [paras[0].firstChild, 8]
3191 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 5 [paras[0].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3192 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 6 [paras[0].firstChild, 10]
3193 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 7 [paras[0].firstChild, 65535]
3194 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 8 [paras[1].firstChild, -1]
3195 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 9 [paras[1].firstChild, 0] assert_equals: focusNode must equal the node we c ollapse()d to expected Text node "Ijklmnop
3196 " but got Text node "Qrstuvwx"
3197 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 10 [paras[1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3198 " but got Text node "Qrstuvwx"
3199 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 11 [paras[1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3200 " but got Text node "Qrstuvwx"
3201 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 12 [paras[1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3202 " but got Text node "Qrstuvwx"
3203 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 13 [paras[1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3204 " but got Text node "Qrstuvwx"
3205 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 14 [paras[1].firstChild, 10]
3206 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 15 [paras[1].firstChild, 65535]
3207 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 16 [detachedPara1.firstChild, 0] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
3208 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 17 [detachedPara1.firstChild, 1] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
3209 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 18 [detachedPara1.firstChild, 8] assert_equals: selection.rangeCount must eq ual 1 after collapse() expected 1 but got 0
3210 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 19 [detachedPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR wh en collapse()ing if the offset is negative or greater than the node's length fun ction "function () {
3211 selection.collapse(point[0], point[1]);
3212 }" did not throw
3213 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 20 [foreignPara1.firstChild, 0] assert_equals: selection.rangeCount must equ al 1 after collapse() expected 1 but got 0
3214 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 21 [foreignPara1.firstChild, 1] assert_equals: selection.rangeCount must equ al 1 after collapse() expected 1 but got 0
3215 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 22 [foreignPara1.firstChild, 8] assert_equals: selection.rangeCount must equ al 1 after collapse() expected 1 but got 0
3216 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 23 [foreignPara1.firstChild, 9] assert_throws: Must throw INDEX_SIZE_ERR whe n collapse()ing if the offset is negative or greater than the node's length func tion "function () {
3217 selection.collapse(point[0], point[1]);
3218 }" did not throw
3219 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 24 [document.documentElement, -1]
3220 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 25 [document.documentElement, 0] assert_equals: focusNode must equal the nod e we collapse()d to expected Element node <html><head><title>Selection.collapse( ) tests</title>
3221 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3222 "
3223 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 26 [document.documentElement, 1] assert_equals: focusNode must equal the nod e we collapse()d to expected Element node <html><head><title>Selection.collapse( ) tests</title>
3224 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3225 "
3226 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 27 [document.documentElement, 2] assert_equals: focusNode must equal the nod e we collapse()d to expected Element node <html><head><title>Selection.collapse( ) tests</title>
3227 <me... but got Text node "Qrstuvwx"
3228 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 28 [document.documentElement, 7]
3229 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 29 [document.head, 1] assert_equals: focusNode must equal the node we collap se()d to expected Element node <head><title>Selection.collapse() tests</title>
3230 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3231 "
3232 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 30 [document.body, 3] assert_equals: focusNode must equal the node we collap se()d to expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ
3233 </p><p id... but got Text node "Qrstuvwx"
3234 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 31 [foreignDoc.documentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3235 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 32 [foreignDoc.documentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3236 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 33 [foreignDoc.head, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3237 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 34 [foreignDoc.body, 1] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3238 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3239 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3240 "
3241 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3242 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3243 "
3244 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 37 [paras[0], 2]
3245 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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
3246 </p> but got Text node "Qrstuvwx"
3247 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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
3248 </p> but got Text node "Qrstuvwx"
3249 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 40 [paras[1], 2]
3250 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3251 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3252 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3253 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3254 "
3255 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3256 </p><p id="b" s... but got Text node "Qrstuvwx"
3257 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 45 [document, -1]
3258 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3259 "
3260 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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̈ḧ
3261 "
3262 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 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"
3263 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 49 [document, 3]
3264 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 50 [comment, -1]
3265 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 51 [comment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3266 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 52 [comment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx"
3267 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 53 [comment, 96]
3268 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3269 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3270 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3271 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 57 [foreignTextNode, 0] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3272 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 58 [foreignTextNode, 36] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3273 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 59 [xmlDoc, -1]
3274 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 60 [xmlDoc, 0] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3275 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 61 [xmlDoc, 1] assert_equals: selection.rangeCount must equal 1 after collap se() expected 1 but got 0
3276 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 62 [xmlDoc, 5] assert_throws: Must throw INDEX_SIZE_ERR when collapse()ing i f the offset is negative or greater than the node's length function "function () {
3277 selection.collapse(point[0], point[1]);
3278 }" did not throw
3279 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3280 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3281 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 65 [processingInstruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3282 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 66 [processingInstruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3283 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 67 [processingInstruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3284 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3285 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 af ter collapse() expected 1 but got 0
3286 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 70 [detachedForeignTextNode, 0] assert_equals: selection.rangeCount must equ al 1 after collapse() expected 1 but got 0
3287 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 71 [detachedForeignTextNode, 8] assert_equals: selection.rangeCount must equ al 1 after collapse() expected 1 but got 0
3288 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 72 [detachedXmlTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3289 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 73 [detachedXmlTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3290 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 74 [detachedProcessingInstruction, 12] assert_equals: selection.rangeCount m ust equal 1 after collapse() expected 1 but got 0
3291 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 75 [detachedComment, 3] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3292 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 76 [detachedComment, 5] assert_equals: selection.rangeCount must equal 1 aft er collapse() expected 1 but got 0
3293 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 77 [detachedForeignComment, 0] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
3294 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 78 [detachedForeignComment, 4] assert_equals: selection.rangeCount must equa l 1 after collapse() expected 1 but got 0
3295 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 79 [detachedXmlComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3296 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 80 [docfrag, 0] assert_equals: selection.rangeCount must equal 1 after colla pse() expected 1 but got 0
3297 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 afte r collapse() expected 1 but got 0
3298 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after co llapse() expected 1 but got 0
3299 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 83 [doctype, 0]
3300 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when colla pse()ing if the node is a DocumentType function "function () {
3301 selection.collapse(point[0], point[1]);
3302 }" 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
3303 PASS Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 85 [doctype, 1]
3304 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3305 selection.collapse(point[0], point[1]);
3306 }" did not throw
3307 FAIL Range 20 [foreignDoc.documentElement, 0, foreignDoc.documentElement, 1], po int 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when coll apse()ing if the node is a DocumentType function "function () {
3308 selection.collapse(point[0], point[1]);
3309 }" did not throw
3310 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 0 [paras[0].firstC hild, -1]
3311 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 1 [paras[0].firstC hild, 0]
3312 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 2 [paras[0].firstC hild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 1 but got 2
3313 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 3 [paras[0].firstC hild, 2]
3314 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 4 [paras[0].firstC hild, 8]
3315 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 5 [paras[0].firstC hild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 9 but got 10
3316 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 6 [paras[0].firstC hild, 10]
3317 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 7 [paras[0].firstC hild, 65535]
3318 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 8 [paras[1].firstC hild, -1]
3319 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 9 [paras[1].firstC hild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3320 " but got Text node "Qrstuvwx"
3321 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 10 [paras[1].first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3322 " but got Text node "Qrstuvwx"
3323 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 11 [paras[1].first Child, 2] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3324 " but got Text node "Qrstuvwx"
3325 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 12 [paras[1].first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3326 " but got Text node "Qrstuvwx"
3327 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 13 [paras[1].first Child, 9] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3328 " but got Text node "Qrstuvwx"
3329 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 14 [paras[1].first Child, 10]
3330 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 15 [paras[1].first Child, 65535]
3331 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 16 [detachedPara1. firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3332 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 17 [detachedPara1. firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3333 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 18 [detachedPara1. firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3334 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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 () {
3335 selection.collapse(point[0], point[1]);
3336 }" did not throw
3337 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 20 [foreignPara1.f irstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3338 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 21 [foreignPara1.f irstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3339 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 22 [foreignPara1.f irstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3340 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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 () {
3341 selection.collapse(point[0], point[1]);
3342 }" did not throw
3343 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 24 [document.docum entElement, -1]
3344 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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>
3345 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3346 "
3347 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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>
3348 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3349 "
3350 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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>
3351 <me... but got Text node "Qrstuvwx"
3352 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 28 [document.docum entElement, 7]
3353 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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>
3354 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3355 "
3356 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3357 </p><p id... but got Text node "Qrstuvwx"
3358 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 31 [foreignDoc.doc umentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3359 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 32 [foreignDoc.doc umentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3360 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 33 [foreignDoc.hea d, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3361 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 34 [foreignDoc.bod y, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3362 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3363 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3364 "
3365 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3366 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3367 "
3368 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 37 [paras[0], 2]
3369 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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
3370 </p> but got Text node "Qrstuvwx"
3371 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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
3372 </p> but got Text node "Qrstuvwx"
3373 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 40 [paras[1], 2]
3374 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3375 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3376 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3377 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3378 "
3379 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3380 </p><p id="b" s... but got Text node "Qrstuvwx"
3381 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 45 [document, -1]
3382 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3383 "
3384 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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̈ḧ
3385 "
3386 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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"
3387 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 49 [document, 3]
3388 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 50 [comment, -1]
3389 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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"
3390 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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"
3391 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 53 [comment, 96]
3392 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3393 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3394 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 56 [foreignComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3395 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 57 [foreignTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3396 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 58 [foreignTextNod e, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3397 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 59 [xmlDoc, -1]
3398 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 60 [xmlDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3399 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 61 [xmlDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3400 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], 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 () {
3401 selection.collapse(point[0], point[1]);
3402 }" did not throw
3403 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3404 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3405 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 65 [processingInst ruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3406 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 66 [processingInst ruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3407 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 67 [processingInst ruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3408 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 68 [detachedTextNo de, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3409 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 69 [detachedTextNo de, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3410 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 70 [detachedForeig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3411 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 71 [detachedForeig nTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3412 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 72 [detachedXmlTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3413 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 73 [detachedXmlTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3414 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 74 [detachedProces singInstruction, 12] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3415 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 75 [detachedCommen t, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3416 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 76 [detachedCommen t, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3417 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 77 [detachedForeig nComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3418 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 78 [detachedForeig nComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3419 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 79 [detachedXmlCom ment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3420 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 80 [docfrag, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3421 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 81 [foreignDocfrag , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3422 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3423 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 83 [doctype, 0]
3424 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node i s a DocumentType function "function () {
3425 selection.collapse(point[0], point[1]);
3426 }" 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
3427 PASS Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 85 [doctype, 1]
3428 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 86 [foreignDoctype , 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the n ode is a DocumentType function "function () {
3429 selection.collapse(point[0], point[1]);
3430 }" did not throw
3431 FAIL Range 21 [foreignDoc.head, 1, foreignDoc.head, 1], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3432 selection.collapse(point[0], point[1]);
3433 }" did not throw
3434 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 0 [paras[0].firstC hild, -1]
3435 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 1 [paras[0].firstC hild, 0]
3436 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 2 [paras[0].firstC hild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 1 but got 2
3437 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 3 [paras[0].firstC hild, 2]
3438 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 4 [paras[0].firstC hild, 8]
3439 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 5 [paras[0].firstC hild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expe cted 9 but got 10
3440 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 6 [paras[0].firstC hild, 10]
3441 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 7 [paras[0].firstC hild, 65535]
3442 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 8 [paras[1].firstC hild, -1]
3443 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 9 [paras[1].firstC hild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
3444 " but got Text node "Qrstuvwx"
3445 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 10 [paras[1].first Child, 1] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3446 " but got Text node "Qrstuvwx"
3447 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 11 [paras[1].first Child, 2] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3448 " but got Text node "Qrstuvwx"
3449 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 12 [paras[1].first Child, 8] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3450 " but got Text node "Qrstuvwx"
3451 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 13 [paras[1].first Child, 9] assert_equals: focusNode must equal the node we collapse()d to expecte d Text node "Ijklmnop
3452 " but got Text node "Qrstuvwx"
3453 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 14 [paras[1].first Child, 10]
3454 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 15 [paras[1].first Child, 65535]
3455 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 16 [detachedPara1. firstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3456 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 17 [detachedPara1. firstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3457 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 18 [detachedPara1. firstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3458 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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 () {
3459 selection.collapse(point[0], point[1]);
3460 }" did not throw
3461 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 20 [foreignPara1.f irstChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3462 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 21 [foreignPara1.f irstChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3463 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 22 [foreignPara1.f irstChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3464 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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 () {
3465 selection.collapse(point[0], point[1]);
3466 }" did not throw
3467 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 24 [document.docum entElement, -1]
3468 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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>
3469 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3470 "
3471 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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>
3472 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3473 "
3474 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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>
3475 <me... but got Text node "Qrstuvwx"
3476 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 28 [document.docum entElement, 7]
3477 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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>
3478 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3479 "
3480 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3481 </p><p id... but got Text node "Qrstuvwx"
3482 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 31 [foreignDoc.doc umentElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3483 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 32 [foreignDoc.doc umentElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3484 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 33 [foreignDoc.hea d, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3485 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 34 [foreignDoc.bod y, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3486 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3487 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3488 "
3489 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3490 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3491 "
3492 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 37 [paras[0], 2]
3493 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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
3494 </p> but got Text node "Qrstuvwx"
3495 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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
3496 </p> but got Text node "Qrstuvwx"
3497 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 40 [paras[1], 2]
3498 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3499 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3500 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3501 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3502 "
3503 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3504 </p><p id="b" s... but got Text node "Qrstuvwx"
3505 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 45 [document, -1]
3506 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3507 "
3508 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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̈ḧ
3509 "
3510 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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"
3511 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 49 [document, 3]
3512 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 50 [comment, -1]
3513 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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"
3514 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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"
3515 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 53 [comment, 96]
3516 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 54 [foreignDoc, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3517 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 55 [foreignDoc, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3518 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 56 [foreignComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3519 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 57 [foreignTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3520 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 58 [foreignTextNod e, 36] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3521 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 59 [xmlDoc, -1]
3522 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 60 [xmlDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3523 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 61 [xmlDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3524 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], 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 () {
3525 selection.collapse(point[0], point[1]);
3526 }" did not throw
3527 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 63 [xmlComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3528 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 64 [xmlComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3529 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 65 [processingInst ruction, 0] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3530 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 66 [processingInst ruction, 5] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3531 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 67 [processingInst ruction, 9] assert_equals: selection.rangeCount must equal 1 after collapse() ex pected 1 but got 0
3532 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 68 [detachedTextNo de, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3533 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 69 [detachedTextNo de, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expecte d 1 but got 0
3534 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 70 [detachedForeig nTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3535 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 71 [detachedForeig nTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3536 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 72 [detachedXmlTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3537 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 73 [detachedXmlTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3538 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 74 [detachedProces singInstruction, 12] assert_equals: selection.rangeCount must equal 1 after coll apse() expected 1 but got 0
3539 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 75 [detachedCommen t, 3] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3540 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 76 [detachedCommen t, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3541 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 77 [detachedForeig nComment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3542 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 78 [detachedForeig nComment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3543 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 79 [detachedXmlCom ment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3544 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 80 [docfrag, 0] as sert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but g ot 0
3545 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 81 [foreignDocfrag , 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3546 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 82 [xmlDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3547 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 83 [doctype, 0]
3548 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 84 [doctype, -17] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node i s a DocumentType function "function () {
3549 selection.collapse(point[0], point[1]);
3550 }" 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
3551 PASS Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 85 [doctype, 1]
3552 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 86 [foreignDoctype , 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the n ode is a DocumentType function "function () {
3553 selection.collapse(point[0], point[1]);
3554 }" did not throw
3555 FAIL Range 22 [foreignDoc.body, 0, foreignDoc.body, 0], point 87 [xmlDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3556 selection.collapse(point[0], point[1]);
3557 }" did not throw
3558 PASS Range 23 [paras[0], 0, paras[0], 0], point 0 [paras[0].firstChild, -1]
3559 PASS Range 23 [paras[0], 0, paras[0], 0], point 1 [paras[0].firstChild, 0]
3560 FAIL Range 23 [paras[0], 0, paras[0], 0], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3561 PASS Range 23 [paras[0], 0, paras[0], 0], point 3 [paras[0].firstChild, 2]
3562 PASS Range 23 [paras[0], 0, paras[0], 0], point 4 [paras[0].firstChild, 8]
3563 FAIL Range 23 [paras[0], 0, paras[0], 0], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3564 PASS Range 23 [paras[0], 0, paras[0], 0], point 6 [paras[0].firstChild, 10]
3565 PASS Range 23 [paras[0], 0, paras[0], 0], point 7 [paras[0].firstChild, 65535]
3566 PASS Range 23 [paras[0], 0, paras[0], 0], point 8 [paras[1].firstChild, -1]
3567 FAIL Range 23 [paras[0], 0, paras[0], 0], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
3568 " but got Text node "Qrstuvwx"
3569 FAIL Range 23 [paras[0], 0, paras[0], 0], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3570 " but got Text node "Qrstuvwx"
3571 FAIL Range 23 [paras[0], 0, paras[0], 0], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3572 " but got Text node "Qrstuvwx"
3573 FAIL Range 23 [paras[0], 0, paras[0], 0], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3574 " but got Text node "Qrstuvwx"
3575 FAIL Range 23 [paras[0], 0, paras[0], 0], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3576 " but got Text node "Qrstuvwx"
3577 PASS Range 23 [paras[0], 0, paras[0], 0], point 14 [paras[1].firstChild, 10]
3578 PASS Range 23 [paras[0], 0, paras[0], 0], point 15 [paras[1].firstChild, 65535]
3579 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3580 "
3581 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3582 "
3583 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3584 "
3585 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3586 selection.collapse(point[0], point[1]);
3587 }" did not throw
3588 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3589 "
3590 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3591 "
3592 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3593 "
3594 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3595 selection.collapse(point[0], point[1]);
3596 }" did not throw
3597 PASS Range 23 [paras[0], 0, paras[0], 0], point 24 [document.documentElement, -1 ]
3598 FAIL Range 23 [paras[0], 0, paras[0], 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>
3599 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3600 "
3601 FAIL Range 23 [paras[0], 0, paras[0], 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>
3602 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3603 "
3604 FAIL Range 23 [paras[0], 0, paras[0], 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>
3605 <me... but got Text node "Qrstuvwx"
3606 PASS Range 23 [paras[0], 0, paras[0], 0], point 28 [document.documentElement, 7]
3607 FAIL Range 23 [paras[0], 0, paras[0], 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>
3608 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3609 "
3610 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3611 </p><p id... but got Text node "Qrstuvwx"
3612 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3613 "
3614 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3615 "
3616 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3617 "
3618 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3619 "
3620 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3621 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3622 "
3623 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3624 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3625 "
3626 PASS Range 23 [paras[0], 0, paras[0], 0], point 37 [paras[0], 2]
3627 FAIL Range 23 [paras[0], 0, paras[0], 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
3628 </p> but got Text node "Qrstuvwx"
3629 FAIL Range 23 [paras[0], 0, paras[0], 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
3630 </p> but got Text node "Qrstuvwx"
3631 PASS Range 23 [paras[0], 0, paras[0], 0], point 40 [paras[1], 2]
3632 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3633 "
3634 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3635 "
3636 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3637 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3638 "
3639 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3640 </p><p id="b" s... but got Text node "Qrstuvwx"
3641 PASS Range 23 [paras[0], 0, paras[0], 0], point 45 [document, -1]
3642 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3643 "
3644 FAIL Range 23 [paras[0], 0, paras[0], 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̈ḧ
3645 "
3646 FAIL Range 23 [paras[0], 0, paras[0], 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"
3647 PASS Range 23 [paras[0], 0, paras[0], 0], point 49 [document, 3]
3648 PASS Range 23 [paras[0], 0, paras[0], 0], point 50 [comment, -1]
3649 FAIL Range 23 [paras[0], 0, paras[0], 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"
3650 FAIL Range 23 [paras[0], 0, paras[0], 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"
3651 PASS Range 23 [paras[0], 0, paras[0], 0], point 53 [comment, 96]
3652 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3653 "
3654 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3655 "
3656 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3657 "
3658 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3659 "
3660 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3661 "
3662 PASS Range 23 [paras[0], 0, paras[0], 0], point 59 [xmlDoc, -1]
3663 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3664 "
3665 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3666 "
3667 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3668 selection.collapse(point[0], point[1]);
3669 }" did not throw
3670 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3671 "
3672 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3673 "
3674 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3675 "
3676 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3677 "
3678 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3679 "
3680 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3681 "
3682 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3683 "
3684 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3685 "
3686 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3687 "
3688 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3689 "
3690 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3691 "
3692 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3693 "
3694 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3695 "
3696 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3697 "
3698 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3699 "
3700 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3701 "
3702 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3703 "
3704 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3705 "
3706 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3707 "
3708 FAIL Range 23 [paras[0], 0, paras[0], 0], 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̈ḧ
3709 "
3710 PASS Range 23 [paras[0], 0, paras[0], 0], point 83 [doctype, 0]
3711 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3712 selection.collapse(point[0], point[1]);
3713 }" 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
3714 PASS Range 23 [paras[0], 0, paras[0], 0], point 85 [doctype, 1]
3715 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3716 selection.collapse(point[0], point[1]);
3717 }" did not throw
3718 FAIL Range 23 [paras[0], 0, paras[0], 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 () {
3719 selection.collapse(point[0], point[1]);
3720 }" did not throw
3721 PASS Range 24 [paras[0], 0, paras[0], 1], point 0 [paras[0].firstChild, -1]
3722 PASS Range 24 [paras[0], 0, paras[0], 1], point 1 [paras[0].firstChild, 0]
3723 FAIL Range 24 [paras[0], 0, paras[0], 1], point 2 [paras[0].firstChild, 1] asser t_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3724 PASS Range 24 [paras[0], 0, paras[0], 1], point 3 [paras[0].firstChild, 2]
3725 PASS Range 24 [paras[0], 0, paras[0], 1], point 4 [paras[0].firstChild, 8]
3726 FAIL Range 24 [paras[0], 0, paras[0], 1], point 5 [paras[0].firstChild, 9] asser t_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3727 PASS Range 24 [paras[0], 0, paras[0], 1], point 6 [paras[0].firstChild, 10]
3728 PASS Range 24 [paras[0], 0, paras[0], 1], point 7 [paras[0].firstChild, 65535]
3729 PASS Range 24 [paras[0], 0, paras[0], 1], point 8 [paras[1].firstChild, -1]
3730 FAIL Range 24 [paras[0], 0, paras[0], 1], point 9 [paras[1].firstChild, 0] asser t_equals: focusNode must equal the node we collapse()d to expected Text node "Ij klmnop
3731 " but got Text node "Qrstuvwx"
3732 FAIL Range 24 [paras[0], 0, paras[0], 1], point 10 [paras[1].firstChild, 1] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3733 " but got Text node "Qrstuvwx"
3734 FAIL Range 24 [paras[0], 0, paras[0], 1], point 11 [paras[1].firstChild, 2] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3735 " but got Text node "Qrstuvwx"
3736 FAIL Range 24 [paras[0], 0, paras[0], 1], point 12 [paras[1].firstChild, 8] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3737 " but got Text node "Qrstuvwx"
3738 FAIL Range 24 [paras[0], 0, paras[0], 1], point 13 [paras[1].firstChild, 9] asse rt_equals: focusNode must equal the node we collapse()d to expected Text node "I jklmnop
3739 " but got Text node "Qrstuvwx"
3740 PASS Range 24 [paras[0], 0, paras[0], 1], point 14 [paras[1].firstChild, 10]
3741 PASS Range 24 [paras[0], 0, paras[0], 1], point 15 [paras[1].firstChild, 65535]
3742 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3743 "
3744 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3745 "
3746 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3747 "
3748 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3749 selection.collapse(point[0], point[1]);
3750 }" did not throw
3751 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3752 "
3753 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3754 "
3755 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3756 "
3757 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3758 selection.collapse(point[0], point[1]);
3759 }" did not throw
3760 PASS Range 24 [paras[0], 0, paras[0], 1], point 24 [document.documentElement, -1 ]
3761 FAIL Range 24 [paras[0], 0, paras[0], 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>
3762 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3763 "
3764 FAIL Range 24 [paras[0], 0, paras[0], 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>
3765 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3766 "
3767 FAIL Range 24 [paras[0], 0, paras[0], 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>
3768 <me... but got Text node "Qrstuvwx"
3769 PASS Range 24 [paras[0], 0, paras[0], 1], point 28 [document.documentElement, 7]
3770 FAIL Range 24 [paras[0], 0, paras[0], 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>
3771 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3772 "
3773 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3774 </p><p id... but got Text node "Qrstuvwx"
3775 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3776 "
3777 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3778 "
3779 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3780 "
3781 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3782 "
3783 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3784 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3785 "
3786 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3787 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3788 "
3789 PASS Range 24 [paras[0], 0, paras[0], 1], point 37 [paras[0], 2]
3790 FAIL Range 24 [paras[0], 0, paras[0], 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
3791 </p> but got Text node "Qrstuvwx"
3792 FAIL Range 24 [paras[0], 0, paras[0], 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
3793 </p> but got Text node "Qrstuvwx"
3794 PASS Range 24 [paras[0], 0, paras[0], 1], point 40 [paras[1], 2]
3795 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3796 "
3797 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3798 "
3799 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3800 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3801 "
3802 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3803 </p><p id="b" s... but got Text node "Qrstuvwx"
3804 PASS Range 24 [paras[0], 0, paras[0], 1], point 45 [document, -1]
3805 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3806 "
3807 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3808 "
3809 FAIL Range 24 [paras[0], 0, paras[0], 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"
3810 PASS Range 24 [paras[0], 0, paras[0], 1], point 49 [document, 3]
3811 PASS Range 24 [paras[0], 0, paras[0], 1], point 50 [comment, -1]
3812 FAIL Range 24 [paras[0], 0, paras[0], 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"
3813 FAIL Range 24 [paras[0], 0, paras[0], 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"
3814 PASS Range 24 [paras[0], 0, paras[0], 1], point 53 [comment, 96]
3815 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3816 "
3817 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3818 "
3819 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3820 "
3821 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3822 "
3823 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3824 "
3825 PASS Range 24 [paras[0], 0, paras[0], 1], point 59 [xmlDoc, -1]
3826 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3827 "
3828 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3829 "
3830 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3831 selection.collapse(point[0], point[1]);
3832 }" did not throw
3833 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3834 "
3835 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3836 "
3837 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3838 "
3839 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3840 "
3841 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3842 "
3843 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3844 "
3845 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3846 "
3847 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3848 "
3849 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3850 "
3851 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3852 "
3853 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3854 "
3855 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3856 "
3857 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3858 "
3859 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3860 "
3861 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3862 "
3863 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3864 "
3865 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3866 "
3867 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3868 "
3869 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3870 "
3871 FAIL Range 24 [paras[0], 0, paras[0], 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̈ḧ
3872 "
3873 PASS Range 24 [paras[0], 0, paras[0], 1], point 83 [doctype, 0]
3874 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3875 selection.collapse(point[0], point[1]);
3876 }" 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
3877 PASS Range 24 [paras[0], 0, paras[0], 1], point 85 [doctype, 1]
3878 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3879 selection.collapse(point[0], point[1]);
3880 }" did not throw
3881 FAIL Range 24 [paras[0], 0, paras[0], 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 () {
3882 selection.collapse(point[0], point[1]);
3883 }" did not throw
3884 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 0 [paras[0].firstChild , -1]
3885 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 1 [paras[0].firstChild , 0]
3886 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
3887 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 3 [paras[0].firstChild , 2]
3888 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 4 [paras[0].firstChild , 8]
3889 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
3890 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 6 [paras[0].firstChild , 10]
3891 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 7 [paras[0].firstChild , 65535]
3892 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 8 [paras[1].firstChild , -1]
3893 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
3894 " but got Text node "Qrstuvwx"
3895 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3896 " but got Text node "Qrstuvwx"
3897 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3898 " but got Text node "Qrstuvwx"
3899 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3900 " but got Text node "Qrstuvwx"
3901 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
3902 " but got Text node "Qrstuvwx"
3903 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 14 [paras[1].firstChil d, 10]
3904 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 15 [paras[1].firstChil d, 65535]
3905 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 16 [detachedPara1.firs tChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3906 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 17 [detachedPara1.firs tChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3907 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 18 [detachedPara1.firs tChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
3908 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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 () {
3909 selection.collapse(point[0], point[1]);
3910 }" did not throw
3911 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 20 [foreignPara1.first Child, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3912 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 21 [foreignPara1.first Child, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3913 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 22 [foreignPara1.first Child, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3914 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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 () {
3915 selection.collapse(point[0], point[1]);
3916 }" did not throw
3917 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 24 [document.documentE lement, -1]
3918 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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>
3919 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3920 "
3921 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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>
3922 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3923 "
3924 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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>
3925 <me... but got Text node "Qrstuvwx"
3926 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 28 [document.documentE lement, 7]
3927 FAIL Range 25 [detachedPara1, 0, detachedPara1, 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>
3928 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3929 "
3930 FAIL Range 25 [detachedPara1, 0, detachedPara1, 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̈ḧ
3931 </p><p id... but got Text node "Qrstuvwx"
3932 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 31 [foreignDoc.documen tElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3933 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 32 [foreignDoc.documen tElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
3934 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 33 [foreignDoc.head, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3935 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 34 [foreignDoc.body, 1 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3936 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3937 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3938 "
3939 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3940 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3941 "
3942 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 37 [paras[0], 2]
3943 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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
3944 </p> but got Text node "Qrstuvwx"
3945 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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
3946 </p> but got Text node "Qrstuvwx"
3947 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 40 [paras[1], 2]
3948 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3949 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3950 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3951 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
3952 "
3953 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3954 </p><p id="b" s... but got Text node "Qrstuvwx"
3955 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 45 [document, -1]
3956 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3957 "
3958 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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̈ḧ
3959 "
3960 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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"
3961 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 49 [document, 3]
3962 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 50 [comment, -1]
3963 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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"
3964 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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"
3965 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 53 [comment, 96]
3966 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 54 [foreignDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3967 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 55 [foreignDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3968 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3969 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 57 [foreignTextNode, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3970 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 58 [foreignTextNode, 3 6] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3971 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 59 [xmlDoc, -1]
3972 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 60 [xmlDoc, 0] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3973 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 61 [xmlDoc, 1] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3974 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], 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 () {
3975 selection.collapse(point[0], point[1]);
3976 }" did not throw
3977 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 63 [xmlComment, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3978 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 64 [xmlComment, 4] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3979 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 65 [processingInstruct ion, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
3980 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 66 [processingInstruct ion, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
3981 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 67 [processingInstruct ion, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
3982 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3983 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3984 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 70 [detachedForeignTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3985 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 71 [detachedForeignTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
3986 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 72 [detachedXmlTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3987 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 73 [detachedXmlTextNod e, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3988 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 74 [detachedProcessing Instruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
3989 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 75 [detachedComment, 3 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3990 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 76 [detachedComment, 5 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
3991 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 77 [detachedForeignCom ment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3992 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 78 [detachedForeignCom ment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
3993 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 79 [detachedXmlComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3994 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 80 [docfrag, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
3995 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
3996 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 82 [xmlDocfrag, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
3997 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 83 [doctype, 0]
3998 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
3999 selection.collapse(point[0], point[1]);
4000 }" 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
4001 PASS Range 25 [detachedPara1, 0, detachedPara1, 0], point 85 [doctype, 1]
4002 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4003 selection.collapse(point[0], point[1]);
4004 }" did not throw
4005 FAIL Range 25 [detachedPara1, 0, detachedPara1, 0], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4006 selection.collapse(point[0], point[1]);
4007 }" did not throw
4008 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 0 [paras[0].firstChild , -1]
4009 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 1 [paras[0].firstChild , 0]
4010 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 2 [paras[0].firstChild , 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
4011 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 3 [paras[0].firstChild , 2]
4012 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 4 [paras[0].firstChild , 8]
4013 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 5 [paras[0].firstChild , 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
4014 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 6 [paras[0].firstChild , 10]
4015 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 7 [paras[0].firstChild , 65535]
4016 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 8 [paras[1].firstChild , -1]
4017 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 9 [paras[1].firstChild , 0] assert_equals: focusNode must equal the node we collapse()d to expected Tex t node "Ijklmnop
4018 " but got Text node "Qrstuvwx"
4019 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 10 [paras[1].firstChil d, 1] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
4020 " but got Text node "Qrstuvwx"
4021 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 11 [paras[1].firstChil d, 2] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
4022 " but got Text node "Qrstuvwx"
4023 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 12 [paras[1].firstChil d, 8] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
4024 " but got Text node "Qrstuvwx"
4025 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 13 [paras[1].firstChil d, 9] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
4026 " but got Text node "Qrstuvwx"
4027 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 14 [paras[1].firstChil d, 10]
4028 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 15 [paras[1].firstChil d, 65535]
4029 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 16 [detachedPara1.firs tChild, 0] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
4030 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 17 [detachedPara1.firs tChild, 1] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
4031 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 18 [detachedPara1.firs tChild, 8] assert_equals: selection.rangeCount must equal 1 after collapse() exp ected 1 but got 0
4032 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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 () {
4033 selection.collapse(point[0], point[1]);
4034 }" did not throw
4035 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 20 [foreignPara1.first Child, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
4036 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 21 [foreignPara1.first Child, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
4037 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 22 [foreignPara1.first Child, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
4038 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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 () {
4039 selection.collapse(point[0], point[1]);
4040 }" did not throw
4041 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 24 [document.documentE lement, -1]
4042 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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>
4043 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4044 "
4045 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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>
4046 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4047 "
4048 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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>
4049 <me... but got Text node "Qrstuvwx"
4050 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 28 [document.documentE lement, 7]
4051 FAIL Range 26 [detachedPara1, 0, detachedPara1, 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>
4052 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4053 "
4054 FAIL Range 26 [detachedPara1, 0, detachedPara1, 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̈ḧ
4055 </p><p id... but got Text node "Qrstuvwx"
4056 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 31 [foreignDoc.documen tElement, 0] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
4057 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 32 [foreignDoc.documen tElement, 1] assert_equals: selection.rangeCount must equal 1 after collapse() e xpected 1 but got 0
4058 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 33 [foreignDoc.head, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4059 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 34 [foreignDoc.body, 1 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4060 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4061 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4062 "
4063 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4064 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4065 "
4066 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 37 [paras[0], 2]
4067 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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
4068 </p> but got Text node "Qrstuvwx"
4069 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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
4070 </p> but got Text node "Qrstuvwx"
4071 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 40 [paras[1], 2]
4072 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 41 [detachedPara1, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4073 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 42 [detachedPara1, 1] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4074 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4075 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4076 "
4077 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4078 </p><p id="b" s... but got Text node "Qrstuvwx"
4079 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 45 [document, -1]
4080 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4081 "
4082 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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̈ḧ
4083 "
4084 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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"
4085 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 49 [document, 3]
4086 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 50 [comment, -1]
4087 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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"
4088 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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"
4089 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 53 [comment, 96]
4090 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 54 [foreignDoc, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4091 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 55 [foreignDoc, 1] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4092 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 56 [foreignComment, 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
4093 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 57 [foreignTextNode, 0 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4094 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 58 [foreignTextNode, 3 6] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4095 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 59 [xmlDoc, -1]
4096 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 60 [xmlDoc, 0] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4097 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 61 [xmlDoc, 1] assert_ equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4098 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], 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 () {
4099 selection.collapse(point[0], point[1]);
4100 }" did not throw
4101 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 63 [xmlComment, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4102 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 64 [xmlComment, 4] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4103 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 65 [processingInstruct ion, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
4104 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 66 [processingInstruct ion, 5] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
4105 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 67 [processingInstruct ion, 9] assert_equals: selection.rangeCount must equal 1 after collapse() expect ed 1 but got 0
4106 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 68 [detachedTextNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4107 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 69 [detachedTextNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4108 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 70 [detachedForeignTex tNode, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
4109 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 71 [detachedForeignTex tNode, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expe cted 1 but got 0
4110 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 72 [detachedXmlTextNod e, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4111 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 73 [detachedXmlTextNod e, 8] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4112 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 74 [detachedProcessing Instruction, 12] assert_equals: selection.rangeCount must equal 1 after collapse () expected 1 but got 0
4113 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 75 [detachedComment, 3 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4114 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 76 [detachedComment, 5 ] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 b ut got 0
4115 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 77 [detachedForeignCom ment, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
4116 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 78 [detachedForeignCom ment, 4] assert_equals: selection.rangeCount must equal 1 after collapse() expec ted 1 but got 0
4117 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 79 [detachedXmlComment , 2] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4118 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 80 [docfrag, 0] assert _equals: selection.rangeCount must equal 1 after collapse() expected 1 but got 0
4119 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 81 [foreignDocfrag, 0] assert_equals: selection.rangeCount must equal 1 after collapse() expected 1 bu t got 0
4120 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 82 [xmlDocfrag, 0] ass ert_equals: selection.rangeCount must equal 1 after collapse() expected 1 but go t 0
4121 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 83 [doctype, 0]
4122 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 84 [doctype, -17] asse rt_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4123 selection.collapse(point[0], point[1]);
4124 }" 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
4125 PASS Range 26 [detachedPara1, 0, detachedPara1, 1], point 85 [doctype, 1]
4126 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 86 [foreignDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4127 selection.collapse(point[0], point[1]);
4128 }" did not throw
4129 FAIL Range 26 [detachedPara1, 0, detachedPara1, 1], point 87 [xmlDoctype, 0] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4130 selection.collapse(point[0], point[1]);
4131 }" did not throw
4132 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 0 [paras[0 ].firstChild, -1]
4133 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 1 [paras[0 ].firstChild, 0]
4134 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 2 [paras[0 ].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
4135 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 3 [paras[0 ].firstChild, 2]
4136 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 4 [paras[0 ].firstChild, 8]
4137 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 5 [paras[0 ].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
4138 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 6 [paras[0 ].firstChild, 10]
4139 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 7 [paras[0 ].firstChild, 65535]
4140 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 8 [paras[1 ].firstChild, -1]
4141 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 9 [paras[1 ].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4142 " but got Text node "Qrstuvwx"
4143 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 10 [paras[ 1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4144 " but got Text node "Qrstuvwx"
4145 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 11 [paras[ 1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4146 " but got Text node "Qrstuvwx"
4147 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 12 [paras[ 1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4148 " but got Text node "Qrstuvwx"
4149 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 13 [paras[ 1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4150 " but got Text node "Qrstuvwx"
4151 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 14 [paras[ 1].firstChild, 10]
4152 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 15 [paras[ 1].firstChild, 65535]
4153 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 16 [detach edPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4154 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 17 [detach edPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4155 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 18 [detach edPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4156 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 () {
4157 selection.collapse(point[0], point[1]);
4158 }" did not throw
4159 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 20 [foreig nPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4160 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 21 [foreig nPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4161 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 22 [foreig nPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4162 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 () {
4163 selection.collapse(point[0], point[1]);
4164 }" did not throw
4165 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 24 [docume nt.documentElement, -1]
4166 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 >
4167 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4168 "
4169 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 >
4170 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4171 "
4172 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 >
4173 <me... but got Text node "Qrstuvwx"
4174 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 28 [docume nt.documentElement, 7]
4175 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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>
4176 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4177 "
4178 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4179 </p><p id... but got Text node "Qrstuvwx"
4180 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 31 [foreig nDoc.documentElement, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Element node <html><head><title></title></head><body><p>Efghijk l</p><p... but got Element node <p id="c">Qrstuvwx</p>
4181 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 32 [foreig nDoc.documentElement, 1] assert_equals: focusNode must equal the node we collaps e()d to expected Element node <html><head><title></title></head><body><p>Efghijk l</p><p... but got Element node <p id="c">Qrstuvwx</p>
4182 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 33 [foreig nDoc.head, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <head><title></title></head> but got Element node <p id="c">Q rstuvwx</p>
4183 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 34 [foreig nDoc.body, 1] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Element node <p id="c">Qrstuvwx</p>
4184 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4185 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4186 "
4187 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4188 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4189 "
4190 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 37 [paras[ 0], 2]
4191 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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
4192 </p> but got Text node "Qrstuvwx"
4193 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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
4194 </p> but got Text node "Qrstuvwx"
4195 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 40 [paras[ 1], 2]
4196 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 41 [detach edPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <p>Opqrstuv</p> but got Element node <p id="c">Qrstuvwx</p>
4197 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 42 [detach edPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <p>Opqrstuv</p> but got Element node <p id="c">Qrstuvwx</p>
4198 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4199 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4200 "
4201 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4202 </p><p id="b" s... but got Text node "Qrstuvwx"
4203 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 45 [docume nt, -1]
4204 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4205 "
4206 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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̈ḧ
4207 "
4208 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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"
4209 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 49 [docume nt, 3]
4210 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 50 [commen t, -1]
4211 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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"
4212 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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"
4213 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 53 [commen t, 96]
4214 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 54 [foreig nDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Element node <p id="c">Qrstuvwx</p>
4215 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 55 [foreig nDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Element node <p id="c">Qrstuvwx</p>
4216 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 56 [foreig nComment, 2] assert_equals: focusNode must equal the node we collapse()d to expe cted Comment node <!--"Commenter" and "commentator" mean different things. I'v. ..--> but got Element node <p id="c">Qrstuvwx</p>
4217 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 57 [foreig nTextNode, 0] 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 Element node <p id="c">Qrstuvwx</p>
4218 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 58 [foreig nTextNode, 36] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "I admit that I harbor doubts about whether we really need..." but got Element node <p id="c">Qrstuvwx</p>
4219 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 59 [xmlDoc , -1]
4220 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 60 [xmlDoc , 0] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 4 children but got Element node <p id="c">Qrstuvwx</p>
4221 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 61 [xmlDoc , 1] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 4 children but got Element node <p id="c">Qrstuvwx</p>
4222 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 () {
4223 selection.collapse(point[0], point[1]);
4224 }" did not throw
4225 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 63 [xmlCom ment, 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 Element node <p id="c">Qrstuvwx</p>
4226 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 64 [xmlCom ment, 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 Element node <p id="c">Qrstuvwx</p>
4227 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 65 [proces singInstruction, 0] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4228 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 66 [proces singInstruction, 5] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4229 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 67 [proces singInstruction, 9] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4230 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 68 [detach edTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "Uvwxyzab" but got Element node <p id="c">Qrstuvwx</p>
4231 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 69 [detach edTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "Uvwxyzab" but got Element node <p id="c">Qrstuvwx</p>
4232 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 70 [detach edForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Cdefghij" but got Element node <p id="c">Qrstuvwx</p>
4233 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 71 [detach edForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Cdefghij" but got Element node <p id="c">Qrstuvwx</p>
4234 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 72 [detach edXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Element node <p id="c">Qrstuvwx</p>
4235 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 73 [detach edXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Element node <p id="c">Qrstuvwx</p>
4236 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 74 [detach edProcessingInstruction, 12] assert_equals: focusNode must equal the node we col lapse()d to expected ProcessingInstruction node with target "whippoorwill" and d ata "chirp chirp chirp" but got Element node <p id="c">Qrstuvwx</p>
4237 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 75 [detach edComment, 3] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Stuvwxyz--> but got Element node <p id="c">Qrstuvwx</p>
4238 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 76 [detach edComment, 5] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Stuvwxyz--> but got Element node <p id="c">Qrstuvwx</p>
4239 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 77 [detach edForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Element node <p id= "c">Qrstuvwx</p>
4240 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 78 [detach edForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Element node <p id= "c">Qrstuvwx</p>
4241 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 79 [detach edXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--בן חיים אליעזר--> but got Element node <p id="c">Qrstuvwx</p>
4242 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 80 [docfra g, 0] assert_equals: focusNode must equal the node we collapse()d to expected Do cumentFragment node with 0 children but got Element node <p id="c">Qrstuvwx</p>
4243 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 81 [foreig nDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted DocumentFragment node with 0 children but got Element node <p id="c">Qrstuv wx</p>
4244 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 82 [xmlDoc frag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Element node <p id="c">Qrstuvwx</ p>
4245 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 83 [doctyp e, 0]
4246 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 () {
4247 selection.collapse(point[0], point[1]);
4248 }" 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
4249 PASS Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 85 [doctyp e, 1]
4250 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], point 86 [foreig nDoctype, 0] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4251 selection.collapse(point[0], point[1]);
4252 }" did not throw
4253 FAIL Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 0], 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 () {
4254 selection.collapse(point[0], point[1]);
4255 }" did not throw
4256 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 0 [paras[0 ].firstChild, -1]
4257 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 1 [paras[0 ].firstChild, 0]
4258 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 2 [paras[0 ].firstChild, 1] assert_equals: focusOffset must equal the offset we collapse()d to expected 1 but got 2
4259 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 3 [paras[0 ].firstChild, 2]
4260 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 4 [paras[0 ].firstChild, 8]
4261 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 5 [paras[0 ].firstChild, 9] assert_equals: focusOffset must equal the offset we collapse()d to expected 9 but got 10
4262 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 6 [paras[0 ].firstChild, 10]
4263 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 7 [paras[0 ].firstChild, 65535]
4264 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 8 [paras[1 ].firstChild, -1]
4265 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 9 [paras[1 ].firstChild, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4266 " but got Text node "Qrstuvwx"
4267 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 10 [paras[ 1].firstChild, 1] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4268 " but got Text node "Qrstuvwx"
4269 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 11 [paras[ 1].firstChild, 2] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4270 " but got Text node "Qrstuvwx"
4271 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 12 [paras[ 1].firstChild, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4272 " but got Text node "Qrstuvwx"
4273 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 13 [paras[ 1].firstChild, 9] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Ijklmnop
4274 " but got Text node "Qrstuvwx"
4275 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 14 [paras[ 1].firstChild, 10]
4276 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 15 [paras[ 1].firstChild, 65535]
4277 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 16 [detach edPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4278 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 17 [detach edPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4279 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 18 [detach edPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse( )d to expected Text node "Opqrstuv" but got Element node <p id="c">Qrstuvwx</p>
4280 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4281 selection.collapse(point[0], point[1]);
4282 }" did not throw
4283 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 20 [foreig nPara1.firstChild, 0] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4284 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 21 [foreig nPara1.firstChild, 1] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4285 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 22 [foreig nPara1.firstChild, 8] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Efghijkl" but got Element node <p id="c">Qrstuvwx</p>
4286 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4287 selection.collapse(point[0], point[1]);
4288 }" did not throw
4289 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 24 [docume nt.documentElement, -1]
4290 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 >
4291 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4292 "
4293 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 >
4294 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4295 "
4296 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 >
4297 <me... but got Text node "Qrstuvwx"
4298 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 28 [docume nt.documentElement, 7]
4299 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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>
4300 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4301 "
4302 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4303 </p><p id... but got Text node "Qrstuvwx"
4304 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 31 [foreig nDoc.documentElement, 0] assert_equals: focusNode must equal the node we collaps e()d to expected Element node <html><head><title></title></head><body><p>Efghijk l</p><p... but got Element node <p id="c">Qrstuvwx</p>
4305 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 32 [foreig nDoc.documentElement, 1] assert_equals: focusNode must equal the node we collaps e()d to expected Element node <html><head><title></title></head><body><p>Efghijk l</p><p... but got Element node <p id="c">Qrstuvwx</p>
4306 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 33 [foreig nDoc.head, 0] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <head><title></title></head> but got Element node <p id="c">Q rstuvwx</p>
4307 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 34 [foreig nDoc.body, 1] assert_equals: focusNode must equal the node we collapse()d to exp ected Element node <body><p>Efghijkl</p><p>Mnopqrst</p>I admit that I harbor... but got Element node <p id="c">Qrstuvwx</p>
4308 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4309 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4310 "
4311 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4312 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4313 "
4314 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 37 [paras[ 0], 2]
4315 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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
4316 </p> but got Text node "Qrstuvwx"
4317 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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
4318 </p> but got Text node "Qrstuvwx"
4319 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 40 [paras[ 1], 2]
4320 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 41 [detach edPara1, 0] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <p>Opqrstuv</p> but got Element node <p id="c">Qrstuvwx</p>
4321 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 42 [detach edPara1, 1] assert_equals: focusNode must equal the node we collapse()d to expec ted Element node <p>Opqrstuv</p> but got Element node <p id="c">Qrstuvwx</p>
4322 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4323 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4324 "
4325 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4326 </p><p id="b" s... but got Text node "Qrstuvwx"
4327 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 45 [docume nt, -1]
4328 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4329 "
4330 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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̈ḧ
4331 "
4332 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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"
4333 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 49 [docume nt, 3]
4334 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 50 [commen t, -1]
4335 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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"
4336 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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"
4337 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 53 [commen t, 96]
4338 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 54 [foreig nDoc, 0] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Element node <p id="c">Qrstuvwx</p>
4339 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 55 [foreig nDoc, 1] assert_equals: focusNode must equal the node we collapse()d to expected Document node with 3 children but got Element node <p id="c">Qrstuvwx</p>
4340 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 56 [foreig nComment, 2] assert_equals: focusNode must equal the node we collapse()d to expe cted Comment node <!--"Commenter" and "commentator" mean different things. I'v. ..--> but got Element node <p id="c">Qrstuvwx</p>
4341 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 57 [foreig nTextNode, 0] 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 Element node <p id="c">Qrstuvwx</p>
4342 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 58 [foreig nTextNode, 36] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "I admit that I harbor doubts about whether we really need..." but got Element node <p id="c">Qrstuvwx</p>
4343 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 59 [xmlDoc , -1]
4344 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 60 [xmlDoc , 0] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 4 children but got Element node <p id="c">Qrstuvwx</p>
4345 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 61 [xmlDoc , 1] assert_equals: focusNode must equal the node we collapse()d to expected Doc ument node with 4 children but got Element node <p id="c">Qrstuvwx</p>
4346 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4347 selection.collapse(point[0], point[1]);
4348 }" did not throw
4349 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 63 [xmlCom ment, 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 Element node <p id="c">Qrstuvwx</p>
4350 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 64 [xmlCom ment, 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 Element node <p id="c">Qrstuvwx</p>
4351 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 65 [proces singInstruction, 0] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4352 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 66 [proces singInstruction, 5] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4353 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 67 [proces singInstruction, 9] assert_equals: focusNode must equal the node we collapse()d to expected ProcessingInstruction node with target "somePI" and data "Did you kn ow that \":syn sync fromstart\" is very useful wh..." but got Element node <p id ="c">Qrstuvwx</p>
4354 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 68 [detach edTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "Uvwxyzab" but got Element node <p id="c">Qrstuvwx</p>
4355 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 69 [detach edTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to ex pected Text node "Uvwxyzab" but got Element node <p id="c">Qrstuvwx</p>
4356 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 70 [detach edForeignTextNode, 0] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Cdefghij" but got Element node <p id="c">Qrstuvwx</p>
4357 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 71 [detach edForeignTextNode, 8] assert_equals: focusNode must equal the node we collapse() d to expected Text node "Cdefghij" but got Element node <p id="c">Qrstuvwx</p>
4358 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 72 [detach edXmlTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Element node <p id="c">Qrstuvwx</p>
4359 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 73 [detach edXmlTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Klmnopqr" but got Element node <p id="c">Qrstuvwx</p>
4360 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 74 [detach edProcessingInstruction, 12] assert_equals: focusNode must equal the node we col lapse()d to expected ProcessingInstruction node with target "whippoorwill" and d ata "chirp chirp chirp" but got Element node <p id="c">Qrstuvwx</p>
4361 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 75 [detach edComment, 3] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Stuvwxyz--> but got Element node <p id="c">Qrstuvwx</p>
4362 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 76 [detach edComment, 5] assert_equals: focusNode must equal the node we collapse()d to exp ected Comment node <!--Stuvwxyz--> but got Element node <p id="c">Qrstuvwx</p>
4363 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 77 [detach edForeignComment, 0] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Element node <p id= "c">Qrstuvwx</p>
4364 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 78 [detach edForeignComment, 4] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--אריה יהודה--> but got Element node <p id= "c">Qrstuvwx</p>
4365 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 79 [detach edXmlComment, 2] assert_equals: focusNode must equal the node we collapse()d to expected Comment node <!--בן חיים אליעזר--> but got Element node <p id="c">Qrstuvwx</p>
4366 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 80 [docfra g, 0] assert_equals: focusNode must equal the node we collapse()d to expected Do cumentFragment node with 0 children but got Element node <p id="c">Qrstuvwx</p>
4367 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 81 [foreig nDocfrag, 0] assert_equals: focusNode must equal the node we collapse()d to expe cted DocumentFragment node with 0 children but got Element node <p id="c">Qrstuv wx</p>
4368 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 82 [xmlDoc frag, 0] assert_equals: focusNode must equal the node we collapse()d to expected DocumentFragment node with 0 children but got Element node <p id="c">Qrstuvwx</ p>
4369 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 83 [doctyp e, 0]
4370 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4371 selection.collapse(point[0], point[1]);
4372 }" 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
4373 PASS Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 8], point 85 [doctyp e, 1]
4374 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4375 selection.collapse(point[0], point[1]);
4376 }" did not throw
4377 FAIL Range 28 [paras[0].firstChild, 0, paras[1].firstChild, 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 () {
4378 selection.collapse(point[0], point[1]);
4379 }" did not throw
4380 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 0 [paras[0].firstChil d, -1]
4381 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 1 [paras[0].firstChil d, 0]
4382 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 2 [paras[0].firstChil d, 1] assert_equals: focusOffset must equal the offset we collapse()d to expecte d 1 but got 2
4383 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 3 [paras[0].firstChil d, 2]
4384 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 4 [paras[0].firstChil d, 8]
4385 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 5 [paras[0].firstChil d, 9] assert_equals: focusOffset must equal the offset we collapse()d to expecte d 9 but got 10
4386 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 6 [paras[0].firstChil d, 10]
4387 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 7 [paras[0].firstChil d, 65535]
4388 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 8 [paras[1].firstChil d, -1]
4389 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 9 [paras[1].firstChil d, 0] assert_equals: focusNode must equal the node we collapse()d to expected Te xt node "Ijklmnop
4390 " but got Text node "Qrstuvwx"
4391 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 10 [paras[1].firstChi ld, 1] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
4392 " but got Text node "Qrstuvwx"
4393 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 11 [paras[1].firstChi ld, 2] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
4394 " but got Text node "Qrstuvwx"
4395 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 12 [paras[1].firstChi ld, 8] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
4396 " but got Text node "Qrstuvwx"
4397 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 13 [paras[1].firstChi ld, 9] assert_equals: focusNode must equal the node we collapse()d to expected T ext node "Ijklmnop
4398 " but got Text node "Qrstuvwx"
4399 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 14 [paras[1].firstChi ld, 10]
4400 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 15 [paras[1].firstChi ld, 65535]
4401 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4402 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4403 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4404 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 () {
4405 selection.collapse(point[0], point[1]);
4406 }" did not throw
4407 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4408 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4409 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4410 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 () {
4411 selection.collapse(point[0], point[1]);
4412 }" did not throw
4413 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 24 [document.document Element, -1]
4414 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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>
4415 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4416 "
4417 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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>
4418 <me... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4419 "
4420 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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>
4421 <me... but got Text node "Qrstuvwx"
4422 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 28 [document.document Element, 7]
4423 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 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>
4424 <meta nam... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4425 "
4426 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 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̈ḧ
4427 </p><p id... but got Text node "Qrstuvwx"
4428 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4429 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4430 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4431 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4432 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4433 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4434 "
4435 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4436 </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4437 "
4438 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 37 [paras[0], 2]
4439 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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
4440 </p> but got Text node "Qrstuvwx"
4441 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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
4442 </p> but got Text node "Qrstuvwx"
4443 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 40 [paras[1], 2]
4444 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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"
4445 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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"
4446 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4447 </p><p id="b" s... but got Text node "Äb̈c̈d̈ëf̈g̈ḧ
4448 "
4449 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4450 </p><p id="b" s... but got Text node "Qrstuvwx"
4451 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 45 [document, -1]
4452 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4453 "
4454 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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̈ḧ
4455 "
4456 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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"
4457 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 49 [document, 3]
4458 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 50 [comment, -1]
4459 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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"
4460 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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"
4461 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 53 [comment, 96]
4462 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4463 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4464 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4465 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4466 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4467 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 59 [xmlDoc, -1]
4468 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4469 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4470 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 () {
4471 selection.collapse(point[0], point[1]);
4472 }" did not throw
4473 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4474 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4475 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4476 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4477 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4478 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 68 [detachedTextNode, 0] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
4479 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 69 [detachedTextNode, 8] assert_equals: focusNode must equal the node we collapse()d to expected Text node "Uvwxyzab" but got Text node "Qrstuvwx"
4480 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4481 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4482 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4483 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4484 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4485 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 75 [detachedComment, 3] assert_equals: focusNode must equal the node we collapse()d to expected Comme nt node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
4486 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 76 [detachedComment, 5] assert_equals: focusNode must equal the node we collapse()d to expected Comme nt node <!--Stuvwxyz--> but got Text node "Qrstuvwx"
4487 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 77 [detachedForeignCo mment, 0] assert_equals: focusNode must equal the node we collapse()d to expecte d Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
4488 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 78 [detachedForeignCo mment, 4] assert_equals: focusNode must equal the node we collapse()d to expecte d Comment node <!--אריה יהודה--> but got Text node "Qrstuvwx"
4489 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 79 [detachedXmlCommen t, 2] assert_equals: focusNode must equal the node we collapse()d to expected Co mment node <!--בן חיים אליעזר--> but got Text node "Qrstuvwx"
4490 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4491 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4492 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], 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 "Qrstuvwx"
4493 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 83 [doctype, 0]
4494 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 84 [doctype, -17] ass ert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4495 selection.collapse(point[0], point[1]);
4496 }" 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
4497 PASS Range 29 [paras[0].firstChild, 3, paras[3], 1], point 85 [doctype, 1]
4498 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 86 [foreignDoctype, 0 ] assert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4499 selection.collapse(point[0], point[1]);
4500 }" did not throw
4501 FAIL Range 29 [paras[0].firstChild, 3, paras[3], 1], point 87 [xmlDoctype, 0] as sert_throws: Must throw INVALID_NODE_TYPE_ERR when collapse()ing if the node is a DocumentType function "function () {
4502 selection.collapse(point[0], point[1]);
4503 }" did not throw
4504 Harness: the test ran to completion.
4505
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698