Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / cross-origin-no-credential-prompt.html
blobd4d098a57159de20e737b5f351575f12345bb0a1
1 There should be no authentication prompt displayed, since this is a cross-origin request.
2 In automatic mode, the test relies on logging of authentication sheets.
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 var r = new XMLHttpRequest;
10 r.open("GET", "http://localhost:8000/xmlhttprequest/resources/basic-auth/basic-auth.php?uid=41531", true);
11 r.send();
12 r.onload = function() {
13 alert("FAIL: should have failed due to lack of cross origin headers");
14 if (window.testRunner)
15 testRunner.notifyDone();
17 r.onerror = function() {
18 if (window.testRunner)
19 testRunner.notifyDone();
21 </script>