| <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> |