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