OLD | NEW |
1 Unit tests for WebCore text iterator | 1 Unit tests for WebCore text iterator |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "" | 6 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "" |
7 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a" | 7 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a" |
8 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a" | 8 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a" |
9 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a\nb" | 9 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "a\nb" |
10 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "debugging this note" | 10 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "debugging this note" |
11 FAIL range.selectNodeContents(testDocument.body); internals.rangeAsText(range) s
hould be Hello | 11 FAIL range.selectNodeContents(testDocument.body); internals.rangeAsText(range) s
hould be Hello |
12 . Was Hello | 12 . Was Hello |
13 | 13 |
14 . | 14 . |
15 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "hey" | 15 PASS range.selectNodeContents(testDocument.body); internals.rangeAsText(range) i
s "hey" |
16 PASS range.setStartBefore(testDocument.body); range.setEndAfter(testDocument.bod
y); internals.rangeAsText(range) is "hey" | 16 PASS range.setStartBefore(testDocument.body); range.setEndAfter(testDocument.bod
y); internals.rangeAsText(range) is "hey" |
| 17 PASS range.selectNodeContents(internals.oldestShadowRoot(input)); internals.rang
eAsText(range) is "b" |
| 18 PASS appendBrElement(internals.oldestShadowRoot(input).childNodes[0]); range.sel
ectNodeContents(internals.oldestShadowRoot(input)); internals.rangeAsText(range)
is "b" |
17 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
18 | 20 |
19 TEST COMPLETE | 21 TEST COMPLETE |
20 | 22 |
OLD | NEW |