| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="resources/js-test-pre.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <script> | |
| 8 window.passUp = null; | |
| 9 </script> | |
| 10 <iframe id="subframe" src="resources/document-all-between-frames-subframe.html">
</iframe> | |
| 11 <script> | |
| 12 window.jsTestIsAsync = true; | |
| 13 window.passUp = []; | |
| 14 function waitForResponse() { | |
| 15 if (window.passUp.length < (9 * 300) + 1) { | |
| 16 setTimeout(waitForResponse, 100); | |
| 17 return; | |
| 18 } | |
| 19 for (var i = 0; i < window.passUp.length; i++) { | |
| 20 debug(window.passUp[i]); | |
| 21 } | |
| 22 if (testRunner) { | |
| 23 testRunner.notifyDone(); | |
| 24 } | |
| 25 } | |
| 26 | |
| 27 var subframe = document.getElementById("subframe"); | |
| 28 subframe.contentWindow.passDown = document.all; | |
| 29 if (document.all) { | |
| 30 debug("FAIL: document.all didn't masquerade as undefined"); | |
| 31 } else { | |
| 32 debug("document.all masqueraded as undefined"); | |
| 33 } | |
| 34 setTimeout(waitForResponse, 100); | |
| 35 </script> | |
| 36 <script src="resources/js-test-post.js"></script> | |
| 37 </body> | |
| 38 </html> | |
| OLD | NEW |