summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/loader/external-script-URL-location.html
blob: b8d430b5cee7a759179afe71bcd2975e2a54dd25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<body onload="test()">
FAILURE
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function test()
{
    document.write("<br>Test 1<br>File in URL: " + leafName(document.URL) + "<br><script src='resources/external-script-URL-location.js'></scr" + "ipt>");
}

function leafName(url) {
    var tokens = new Array();
    tokens = url.split('/');
    var len = tokens.length;
    return tokens[len-1];
}

</script>
</body>