blob: bc80cbb0a017704760393bb3100affe5d0c789e5 [file] [log] [blame]
<a style="display:none" href="filesystem:http://www.webkit.org:8080/temporary/a/b/c/file.txt">foo</a>
<p>This text should not be visible. It should be overwritten by the running of the test.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var expectedOrigin = 'http://www.webkit.org:8080';
var actualOrigin = document.getElementsByTagName('a')[0].origin;
var resultElt = document.getElementsByTagName('p')[0];
if (actualOrigin == expectedOrigin)
resultElt.innerText = 'PASSED: origin was ' + expectedOrigin;
else
resultElt.innerText = 'FAILED: expected origin: ' + expectedOrigin + ' but got: ' + actualOrigin;
</script>