| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 </script> | 7 </script> |
| 8 </head> | 8 </head> |
| 9 <body> | 9 <body> |
| 10 <!-- Makes sure the insertion point is at the end of the running script. | 10 <!-- Makes sure the insertion point is at the end of the running script. |
| 11 Test passes if written script runs before second inline script. --> | 11 Test passes if written script runs before second inline script. --> |
| 12 <div id="console"></div> | 12 <div id="console"></div> |
| 13 <svg> | 13 <svg> |
| 14 <g> | 14 <g> |
| 15 <rect id="test"> | 15 <rect id="test"> |
| 16 <script> | 16 <script> |
| 17 document.write('<script>debug("written script ran!");</script>')
; | 17 document.write('<script>debug("written script ran!");</script>')
; |
| 18 </script> | 18 </script> |
| 19 <script> | 19 <script> |
| 20 debug("second inline script ran!"); | 20 debug("second inline script ran!"); |
| 21 </script> | 21 </script> |
| 22 </rect> | 22 </rect> |
| 23 </g> | 23 </g> |
| 24 </svg> | 24 </svg> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| OLD | NEW |