| <body> |
| <p>This test passes if the module script does not load.</p> |
| <pre></pre> |
| <script crossorigin="use-credentials"> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| function done(msg) { |
| document.querySelector("pre").innerHTML = msg; |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| } |
| |
| // Executed with "omit". |
| // https://github.com/tc39/proposal-dynamic-import/blob/master/HTML%20Integration.md |
| import("http://localhost:8000/security/resources/cors-deny.py?credentials=true").then( |
| function() { done("FAIL");}, |
| function() { done("PASS"); }); |
| </script> |