OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 description('This tests that DocumentFragment implements the ParentNode interfac
e.'); | 6 description('This tests that DocumentFragment implements the ParentNode interfac
e.'); |
7 | 7 |
8 var documentFragment = new DocumentFragment(); | 8 var documentFragment = new DocumentFragment(); |
9 | 9 |
10 shouldBe('documentFragment.children.length', '0'); | 10 shouldBe('documentFragment.children.length', '0'); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 documentFragment.appendChild(new Text('e')); | 43 documentFragment.appendChild(new Text('e')); |
44 shouldBe('documentFragment.children.length', '2'); | 44 shouldBe('documentFragment.children.length', '2'); |
45 shouldBe('documentFragment.childElementCount', '2'); | 45 shouldBe('documentFragment.childElementCount', '2'); |
46 shouldBe('documentFragment.children[0]', 'b'); | 46 shouldBe('documentFragment.children[0]', 'b'); |
47 shouldBe('documentFragment.children[1]', 'd'); | 47 shouldBe('documentFragment.children[1]', 'd'); |
48 shouldBe('documentFragment.firstElementChild', 'b'); | 48 shouldBe('documentFragment.firstElementChild', 'b'); |
49 shouldBe('documentFragment.lastElementChild', 'd'); | 49 shouldBe('documentFragment.lastElementChild', 'd'); |
50 | 50 |
51 </script> | 51 </script> |
52 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |