| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.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. | |
| 11 Test passes if written script runs before second inline script. --> | |
| 12 <div id="console"></div> | 10 <div id="console"></div> |
| 13 <svg> | 11 <svg> |
| 14 <g> | 12 <g> |
| 15 <rect id="test"> | 13 <rect id="test"> |
| 16 <script> | 14 <script> |
| 17 document.write('<script>debug("written script ran!");</script>')
; | 15 document.write('<scr' + 'ipt>debug("written script ran!");</scr'
+ 'ipt>'); |
| 18 </script> | 16 </script> |
| 19 <script> | 17 <script> |
| 20 debug("second inline script ran!"); | 18 debug("second inline script ran!"); |
| 21 </script> | 19 </script> |
| 22 </rect> | 20 </rect> |
| 23 </g> | 21 </g> |
| 24 </svg> | 22 </svg> |
| 25 </body> | 23 </body> |
| 26 </html> | 24 </html> |
| OLD | NEW |