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. | 10 <!--This test is amazing and doesn't do anything like what you think it does! --
> |
11 Test passes if written script runs before second inline script. --> | |
12 <div id="console"></div> | 11 <div id="console"></div> |
13 <svg> | 12 <svg> |
14 <g> | 13 <g> |
15 <rect id="test"> | 14 <rect id="test"> |
16 <script> | 15 <script> |
17 document.write('<script>debug("written script ran!");</script>')
; | 16 document.write('<script>debug("written script ran!");</script>')
; |
18 </script> | 17 </script> |
19 <script> | 18 <script> |
20 debug("second inline script ran!"); | 19 debug("second inline script ran!"); |
21 </script> | 20 </script> |
22 </rect> | 21 </rect> |
23 </g> | 22 </g> |
24 </svg> | 23 </svg> |
25 </body> | 24 </body> |
26 </html> | 25 </html> |
OLD | NEW |