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();
12 testRunner
.waitUntilDone();
15 window
.addEventListener("message", function(evt
) {
16 if (evt
.data
== "done") {
17 testRunner
.notifyDone();
24 <iframe src='data:text/html,
27 var xhr
= new XMLHttpRequest
;
30 xhr
.open("GET", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi", false);
32 parent
.postMessage("FAIL: Exception thrown. Cross-domain access is not allowed in open. [" + e
.message
+ "].", "*");
39 parent
.postMessage("FAIL: Exception thrown. Cross-domain access is not allowed in send. [" + e
.message
+ "].", "*");
43 parent
.postMessage(xhr
.responseText
, "*");
45 parent
.postMessage("done", "*");