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.
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);
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();