3 <pre id='console'
></pre>
4 <script type=
"text/javascript">
7 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
14 var xhr
= new XMLHttpRequest
;
17 xhr
.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi", false);
19 log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e
.message
+ "].");
26 log("PASS: Exception thrown. Cross-domain access was denied in 'send'. [" + e
.message
+ "].");
30 log(xhr
.responseText
);