3 <pre id=
"console"></pre>
5 function log(message
) {
6 document
.getElementById('console').appendChild(document
.createTextNode(message
+ '\n'));
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
14 var xhr
= new XMLHttpRequest();
15 xhr
.open('POST', 'http://localhost:8000/xmlhttprequest/resources/access-control-basic-allow-access-control-origin-header.cgi', true);
16 xhr
.onload = function () {
17 log(xhr
.responseText
);
18 if (window
.testRunner
)
19 testRunner
.notifyDone();