File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -276,10 +276,12 @@ fn list() {
276
276
li2. borrow_mut ( ) . previous_sibling = Some ( Rc :: downgrade ( & li1) ) ;
277
277
}
278
278
279
- run_test ! ( "<html><head></head><body><ul><li></li><li></li></ul></body></html>" , Some ( root) ) ;
279
+ run_test ! (
280
+ "<html><head></head><body><ul><li></li><li></li></ul></body></html>" ,
281
+ Some ( root)
282
+ ) ;
280
283
}
281
284
282
- /*
283
285
#[ test_case]
284
286
fn list2 ( ) {
285
287
// root (Document)
@@ -323,15 +325,15 @@ fn list2() {
323
325
ElementKind :: Li ,
324
326
) ) ) ) ) ;
325
327
326
- // body <--> ul
328
+ // body <--> ul1
327
329
{
328
330
body. borrow_mut ( ) . first_child = Some ( ul1. clone ( ) ) ;
329
331
}
330
332
{
331
333
ul1. borrow_mut ( ) . parent = Some ( Rc :: downgrade ( & body) ) ;
332
334
}
333
335
334
- // ul <--> li1
336
+ // ul1 <--> li1
335
337
{
336
338
ul1. borrow_mut ( ) . first_child = Some ( li1. clone ( ) ) ;
337
339
}
@@ -347,6 +349,14 @@ fn list2() {
347
349
li2. borrow_mut ( ) . previous_sibling = Some ( Rc :: downgrade ( & li1) ) ;
348
350
}
349
351
352
+ // ul1 <--> ul2
353
+ {
354
+ ul1. borrow_mut ( ) . next_sibling = Some ( ul2. clone ( ) ) ;
355
+ }
356
+ {
357
+ ul2. borrow_mut ( ) . previous_sibling = Some ( Rc :: downgrade ( & ul1) ) ;
358
+ }
359
+
350
360
// ul2 <--> li3
351
361
{
352
362
ul2. borrow_mut ( ) . first_child = Some ( li3. clone ( ) ) ;
@@ -365,4 +375,3 @@ fn list2() {
365
375
366
376
run_test ! ( "<html><head></head><body><ul><li></li><li></li></ul><ul><li></li><li></li></ul></body></html>" , Some ( root) ) ;
367
377
}
368
- */
You can’t perform that action at this time.
0 commit comments