27 lines
636 B
HTML
27 lines
636 B
HTML
<html>
|
|
<head>
|
|
<script src="../../resources/js-test-pre.js"></script>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- Makes sure the insertion point is at the end of the running script.
|
|
Test passes if written script runs before second inline script. -->
|
|
<div id="console"></div>
|
|
<svg>
|
|
<g>
|
|
<rect id="test">
|
|
<script>
|
|
document.write('<script>debug("written script ran!");</script>');
|
|
</script>
|
|
<script>
|
|
debug("second inline script ran!");
|
|
</script>
|
|
</rect>
|
|
</g>
|
|
</svg>
|
|
</body>
|
|
</html>
|