3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
8 function setNetworkEnabled(state
)
10 var req
= new XMLHttpRequest
;
11 req
.open("GET", "/resources/network-simulator.php?command=" + (state
? "connect" : "disconnect"), false);
15 setNetworkEnabled(true);
19 location
='resources/stopped-revalidation-result.html';
21 setTimeout(function() {
22 var img
= document
.getElementsByTagName("img")[0];
23 document
.body
.removeChild(img
);
24 img
= document
.createElement("img");
25 img
.style
.display
= "none";
26 img
.src
= "resources/compass-no-cache.jpg";
27 document
.body
.appendChild(img
);
28 img
.style
.display
= "inline";
32 <img src=
"resources/compass-no-cache.jpg" onload=
"test()">