<base href="file://">
<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

document.write("Base URL: <b>" + document.getElementsByTagName("base")[0].href + "</b><br>");

var directoryPart = document.URL.substring(7);
directoryPart = directoryPart.substring(0, directoryPart.lastIndexOf('/') + 1);
document.write("Should say PASS: <b>");
document.write("<script src='" + directoryPart + "resources/pass.js'></scri" + "pt>");
</script>
