| OLD | NEW |
| (Empty) |
| 1 This test ensures WebKit adjusts the selection under document mutation. | |
| 2 | |
| 3 Examples are from: | |
| 4 http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Mutat
ion | |
| 5 | |
| 6 Base is first | |
| 7 | |
| 8 Insertion tests: | |
| 9 PASS: selection is (24, 32) "Y blah i" | |
| 10 PASS: selection is (11, 32) "inserted textY blah i" | |
| 11 PASS: selection is (11, 32) "Yinserted text blah i" | |
| 12 PASS: selection is (11, 32) "Y blahinserted text i" | |
| 13 PASS: selection is (11, 19) "Y blah i" | |
| 14 | |
| 15 Deletion tests: | |
| 16 PASS: selection is (5, 13) "Range i" | |
| 17 PASS: selection is (5, 5) "" | |
| 18 PASS: selection is (5, 15) "he Range i" | |
| 19 PASS: selection is (1, 1) "" | |
| 20 | |
| 21 | |
| 22 Extent is first | |
| 23 | |
| 24 Insertion tests: | |
| 25 PASS: selection is (24, 32) "Y blah i" | |
| 26 PASS: selection is (11, 32) "inserted textY blah i" | |
| 27 PASS: selection is (11, 32) "Yinserted text blah i" | |
| 28 PASS: selection is (11, 32) "Y blahinserted text i" | |
| 29 PASS: selection is (11, 19) "Y blah i" | |
| 30 | |
| 31 Deletion tests: | |
| 32 PASS: selection is (5, 13) "Range i" | |
| 33 PASS: selection is (5, 5) "" | |
| 34 PASS: selection is (5, 15) "he Range i" | |
| 35 PASS: selection is (1, 1) "" | |
| 36 | |
| 37 DONE | |
| 38 | |
| OLD | NEW |