weinig@apple.com | f88fc71 | 2015-05-15 22:55:53 +0000 | [diff] [blame] | 1 | Tests the basic functionality of the `children` property on ParentNode. |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | PASS document.children is an instance of HTMLCollection |
| 7 | PASS document.documentElement.children is an instance of HTMLCollection |
| 8 | PASS document.createDocumentFragment().children is an instance of HTMLCollection |
| 9 | PASS document.children.length is 1 |
| 10 | PASS document.children[0] is document.documentElement |
| 11 | PASS document.documentElement.children.length is 2 |
| 12 | PASS document.documentElement.children[0] is document.head |
| 13 | PASS document.documentElement.children[1] is document.body |
| 14 | PASS documentFragment.children.length is 2 |
| 15 | PASS documentFragment.children[0] is child1 |
| 16 | PASS documentFragment.children[1] is child2 |
| 17 | PASS successfullyParsed is true |
| 18 | |
| 19 | TEST COMPLETE |
| 20 | |