blob: dd0dbd6c461ea6f4e69081e645a2930eb60b6125 [file] [log] [blame]
<p>Specifying that an IP address should match subdomains doesn't make sense. This test verifies that it doesn't do anything.</p>
<pre id="console"></pre>
<script>
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.addOriginAccessWhitelistEntry("http://localhost:8000", "http", "*.0.0.1", true);
function log(message)
{
document.getElementById('console').appendChild(document.createTextNode(message + '\n'));
}
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
iframe.src = "http://localhost:8000/xmlhttprequest/resources/origin-whitelisting-ip-address-test.html";
window.addEventListener("message", function(e) {
if (e.data == "DONE")
testRunner.notifyDone();
else
log(e.data);
}, false);
</script>