3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
8 var asyncFinished
= false;
9 var syncFinished
= false;
12 if (asyncFinished
&& syncFinished
)
13 testRunner
.notifyDone();
17 var asyncxhr
= new XMLHttpRequest();
18 asyncxhr
.onreadystatechange = function() {
19 if (asyncxhr
.readyState
!= 4)
24 asyncxhr
.open("GET", "resources/get.txt", true);
27 var syncxhr
= new XMLHttpRequest();
28 syncxhr
.open("GET", "resources/get.txt", false);
30 document
.body
.appendChild(document
.createTextNode(syncxhr
.responseText
));