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 we execute scripts inside <svg>. Test passes if PASS is printed.
--> | |
11 <div id="console"></div> | 10 <div id="console"></div> |
12 <svg> | 11 <svg> |
13 <g> | 12 <g> |
14 <rect id="test"> | 13 <rect id="test"> |
15 <script> | 14 <script> |
16 testPassed("script ran!"); | 15 // Notice that the parent script block ignores the nested |
| 16 // script element. |
| 17 debug('Hello<script>debug("inner script ran!");</script>World'); |
17 </script> | 18 </script> |
18 </rect> | 19 </rect> |
19 </g> | 20 </g> |
20 </svg> | 21 </svg> |
21 </body> | 22 </body> |
22 </html> | 23 </html> |
OLD | NEW |