blob: a6692c674b68bb4d2739c7966dc7b20c70780b05 [file] [log] [blame]
<p>Tests origin whitelisting with IP addresses.</p>
<pre id="console"></pre>
<script>
testRunner.dumpAsText();
testRunner.waitUntilDone();
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>