OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 PASS For an empty Element, textContent should be the empty string | |
3 PASS For an empty DocumentFragment, textContent should be the empty string | |
4 PASS Element with children | |
5 PASS Element with descendants | |
6 PASS DocumentFragment with children | |
7 PASS DocumentFragment with descendants | |
8 PASS For an empty Text, textContent should be the empty string | |
9 PASS For an empty ProcessingInstruction, textContent should be the empty string | |
10 PASS For an empty Comment, textContent should be the empty string | |
11 PASS For a Text with data, textContent should be that data | |
12 PASS For a ProcessingInstruction with data, textContent should be that data | |
13 PASS For a Comment with data, textContent should be that data | |
14 PASS For Documents created by parser, textContent should be null | |
15 PASS For Documents created by createDocument, textContent should be null | |
16 PASS For Documents created by createHTMLDocument, textContent should be null | |
17 PASS For DocumentType created by parser, textContent should be null | |
18 PASS For DocumentType created by script, textContent should be null | |
19 PASS Element without children set to null | |
20 PASS Element with empty text node as child set to null | |
21 PASS Element with children set to null | |
22 PASS Element with descendants set to null | |
23 PASS DocumentFragment without children set to null | |
24 PASS DocumentFragment with empty text node as child set to null | |
25 PASS DocumentFragment with children set to null | |
26 PASS DocumentFragment with descendants set to null | |
27 PASS Element without children set to undefined | |
28 PASS Element with empty text node as child set to undefined | |
29 PASS Element with children set to undefined | |
30 PASS Element with descendants set to undefined | |
31 PASS DocumentFragment without children set to undefined | |
32 PASS DocumentFragment with empty text node as child set to undefined | |
33 PASS DocumentFragment with children set to undefined | |
34 PASS DocumentFragment with descendants set to undefined | |
35 PASS Element without children set to "" | |
36 FAIL Element with empty text node as child set to "" assert_equals: expected nul
l but got Text node "" | |
37 PASS Element with children set to "" | |
38 PASS Element with descendants set to "" | |
39 PASS DocumentFragment without children set to "" | |
40 FAIL DocumentFragment with empty text node as child set to "" assert_equals: exp
ected null but got Text node "" | |
41 PASS DocumentFragment with children set to "" | |
42 PASS DocumentFragment with descendants set to "" | |
43 PASS Element without children set to 42 | |
44 PASS Element with empty text node as child set to 42 | |
45 PASS Element with children set to 42 | |
46 PASS Element with descendants set to 42 | |
47 PASS DocumentFragment without children set to 42 | |
48 PASS DocumentFragment with empty text node as child set to 42 | |
49 PASS DocumentFragment with children set to 42 | |
50 PASS DocumentFragment with descendants set to 42 | |
51 PASS Element without children set to "abc" | |
52 PASS Element with empty text node as child set to "abc" | |
53 PASS Element with children set to "abc" | |
54 PASS Element with descendants set to "abc" | |
55 PASS DocumentFragment without children set to "abc" | |
56 PASS DocumentFragment with empty text node as child set to "abc" | |
57 PASS DocumentFragment with children set to "abc" | |
58 PASS DocumentFragment with descendants set to "abc" | |
59 PASS Element without children set to "<b>xyz</b>" | |
60 PASS Element with empty text node as child set to "<b>xyz</b>" | |
61 PASS Element with children set to "<b>xyz</b>" | |
62 PASS Element with descendants set to "<b>xyz</b>" | |
63 PASS DocumentFragment without children set to "<b>xyz</b>" | |
64 PASS DocumentFragment with empty text node as child set to "<b>xyz</b>" | |
65 PASS DocumentFragment with children set to "<b>xyz</b>" | |
66 PASS DocumentFragment with descendants set to "<b>xyz</b>" | |
67 PASS Element without children set to "d\0e" | |
68 PASS Element with empty text node as child set to "d\0e" | |
69 PASS Element with children set to "d\0e" | |
70 PASS Element with descendants set to "d\0e" | |
71 PASS DocumentFragment without children set to "d\0e" | |
72 PASS DocumentFragment with empty text node as child set to "d\0e" | |
73 PASS DocumentFragment with children set to "d\0e" | |
74 PASS DocumentFragment with descendants set to "d\0e" | |
75 PASS For a Text, textContent should set the data | |
76 PASS For a ProcessingInstruction, textContent should set the data | |
77 PASS For a Comment, textContent should set the data | |
78 PASS For Documents created by parser, setting textContent should do nothing | |
79 PASS For Documents created by createDocument, setting textContent should do noth
ing | |
80 PASS For Documents created by createHTMLDocument, setting textContent should do
nothing | |
81 PASS For DocumentType created by parser, setting textContent should do nothing | |
82 PASS For DocumentType created by script, setting textContent should do nothing | |
83 Harness: the test ran to completion. | |
84 | |
OLD | NEW |