summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/frames/resources/subframe-base-url.html
blob: 1ce8b013f7706e82edc3de61a96177d57e5b49b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<body>
<a href="foobar.html">Nonexistent Resource</a><br>
<script>
document.open();
document.close();

if (/\/resources\/foobar.html$/.test(document.getElementsByTagName("a")[0].href))
    parent.document.getElementById("testResult").innerHTML = "SUCCESS"
    
if (window.layoutTestController)
    layoutTestController.notifyDone();
</script>
</body>