| 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 | 3 |
| 4 <style> | 4 <style> |
| 5 script { display: block; } | 5 script { display: block; } |
| 6 </style> | 6 </style> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 description("Test that script can access its own renderer when executing"); | 9 description("Test that script can access its own renderer when executing"); |
| 10 | 10 |
| 11 document.documentElement.offsetTop; | 11 document.documentElement.offsetTop; |
| 12 script = document.createElement('script'); | 12 script = document.createElement('script'); |
| 13 script.textContent = 'shouldBeTrue("script.offsetWidth > 0")'; | 13 script.textContent = 'shouldBeTrue("script.offsetWidth > 0")'; |
| 14 document.documentElement.appendChild(script); | 14 document.documentElement.appendChild(script); |
| 15 shouldBeTrue('script.offsetWidth > 0'); | 15 shouldBeTrue('script.offsetWidth > 0'); |
| 16 </script> | 16 </script> |
| 17 | 17 |
| 18 <script src="../js/resources/js-test-post.js"></script> | |
| OLD | NEW |