4 testRunner
.waitUntilDone();
7 document_clone
= document
.cloneNode(false);
8 style1
= document_clone
.createProcessingInstruction('xml-stylesheet', 'href="fail.css" type="text/css"');
9 iframe1
= style1
.ownerDocument
.createElement('iframe');
10 style2
= document_clone
.createProcessingInstruction('xml-stylesheet', 'href="fail.css" type="text/css"');
11 document_clone
.insertBefore(style2
, document_clone
.firstChild
);
12 doc
= document
.documentElement
;
13 iframe1
.appendChild(doc
);
14 document_clone
= null;
16 iframe2
= doc
.ownerDocument
.createElement('iframe');
18 iframe2_clone
= iframe2
.cloneNode(true);
19 div
= document
.createElement('div');
20 div_clone
= div
.cloneNode(false);
21 iframe2_clone
.appendChild(div_clone
);
22 iframe3
= div_clone
.ownerDocument
.createElement('iframe');
23 style3
= iframe3
.ownerDocument
.createProcessingInstruction('xml-stylesheet', 'href="fail.css" type="text/css"');
24 iframe3
.ownerDocument
.insertBefore(style3
, iframe3
.ownerDocument
.firstChild
);
28 function reload_page() {
29 if (location
.hash
== '#done') {
30 document
.write('PASS');
31 if (window
.testRunner
) {
32 testRunner
.dumpAsText();
33 testRunner
.notifyDone();
39 if (location
.hash
!== "")
40 count
= parseInt(location
.hash
.substr(1));
43 location
.hash
= '#' + count
;
45 location
.hash
= 'done';
47 setTimeout("gc(); location.reload();", 100);
50 <body onload=
"start()"></body>