| 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 is constructable.'); | 6 description('This tests that DocumentFragment is constructable.'); |
| 7 | 7 |
| 8 shouldBe('new DocumentFragment().ownerDocument', 'document'); | 8 shouldBe('new DocumentFragment().ownerDocument', 'document'); |
| 9 | 9 |
| 10 shouldBe('typeof new DocumentFragment', '"object"'); | 10 shouldBe('typeof new DocumentFragment', '"object"'); |
| 11 shouldBe('Object.prototype.toString.call(new DocumentFragment)', '"[object Docum
entFragment]"'); | 11 shouldBe('Object.prototype.toString.call(new DocumentFragment)', '"[object Docum
entFragment]"'); |
| 12 shouldBeTrue('new DocumentFragment instanceof DocumentFragment'); | 12 shouldBeTrue('new DocumentFragment instanceof DocumentFragment'); |
| 13 shouldBe('Object.getPrototypeOf(new DocumentFragment)', 'DocumentFragment.protot
ype'); | 13 shouldBe('Object.getPrototypeOf(new DocumentFragment)', 'DocumentFragment.protot
ype'); |
| 14 | 14 |
| 15 var frame = document.createElement('iframe'); | 15 var frame = document.createElement('iframe'); |
| 16 document.body.appendChild(frame); | 16 document.body.appendChild(frame); |
| 17 var innerWindow = frame.contentWindow; | 17 var innerWindow = frame.contentWindow; |
| 18 var innerDocument = frame.contentDocument; | 18 var innerDocument = frame.contentDocument; |
| 19 | 19 |
| 20 shouldBe('new innerWindow.DocumentFragment().ownerDocument', 'innerDocument') | 20 shouldBe('new innerWindow.DocumentFragment().ownerDocument', 'innerDocument') |
| 21 shouldBeTrue('new innerWindow.DocumentFragment instanceof innerWindow.DocumentFr
agment'); | 21 shouldBeTrue('new innerWindow.DocumentFragment instanceof innerWindow.DocumentFr
agment'); |
| 22 shouldBe('Object.getPrototypeOf(new innerWindow.DocumentFragment)', 'innerWindow
.DocumentFragment.prototype'); | 22 shouldBe('Object.getPrototypeOf(new innerWindow.DocumentFragment)', 'innerWindow
.DocumentFragment.prototype'); |
| 23 | 23 |
| 24 </script> | 24 </script> |
| 25 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |