Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / filesystem / filesystem-uri-origin.html
blobbc80cbb0a017704760393bb3100affe5d0c789e5
1 <a style="display:none" href="filesystem:http://www.webkit.org:8080/temporary/a/b/c/file.txt">foo</a>
2 <p>This text should not be visible. It should be overwritten by the running of the test.</p>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var expectedOrigin = 'http://www.webkit.org:8080';
7 var actualOrigin = document.getElementsByTagName('a')[0].origin;
8 var resultElt = document.getElementsByTagName('p')[0];
9 if (actualOrigin == expectedOrigin)
10 resultElt.innerText = 'PASSED: origin was ' + expectedOrigin;
11 else
12 resultElt.innerText = 'FAILED: expected origin: ' + expectedOrigin + ' but got: ' + actualOrigin;
13 </script>