<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
</script>
</head>
<body>
<!-- Makes sure we execute external scripts inside <svg>.
Test passes if external script runs before second inline script. -->
<div id="console"></div>
<svg>
    <g>
        <rect id="test">
            <script xlink:href="resources/external.js"></script>
            <script>
                debug("second inline ran!");
            </script>
        </rect>
    </g>
</svg>
</body>
</html>
