| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
| 3 <div id="test-div">Test</div> | 3 <div id="test-div">Test</div> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 description('Tests that we can create instances of Range using new'); | 6 description('Tests that we can create instances of Range using new'); |
| 7 | 7 |
| 8 shouldBe('typeof new Range', '"object"'); | 8 shouldBe('typeof new Range', '"object"'); |
| 9 shouldBe('Object.prototype.toString.call(new Range)', '"[object Range]"'); | 9 shouldBe('Object.prototype.toString.call(new Range)', '"[object Range]"'); |
| 10 shouldBeTrue('new Range instanceof Range'); | 10 shouldBeTrue('new Range instanceof Range'); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 innerDocument.body.textContent = 'Inner'; | 21 innerDocument.body.textContent = 'Inner'; |
| 22 | 22 |
| 23 shouldBeTrue('new innerWindow.Range instanceof innerWindow.Range'); | 23 shouldBeTrue('new innerWindow.Range instanceof innerWindow.Range'); |
| 24 shouldBe('Object.getPrototypeOf(new innerWindow.Range)', 'innerWindow.Range.prot
otype'); | 24 shouldBe('Object.getPrototypeOf(new innerWindow.Range)', 'innerWindow.Range.prot
otype'); |
| 25 | 25 |
| 26 var r = new innerWindow.Range(); | 26 var r = new innerWindow.Range(); |
| 27 r.selectNodeContents(innerDocument.body); | 27 r.selectNodeContents(innerDocument.body); |
| 28 shouldBe('r.toString()', '"Inner"'); | 28 shouldBe('r.toString()', '"Inner"'); |
| 29 | 29 |
| 30 </script> | 30 </script> |
| 31 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |