OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <body> |
| 4 <iframe id="target"></iframe> |
| 5 <script src="../../resources/js-test.js"></script> |
| 6 <script src="../../resources/leak-check.js"></script> |
| 7 <script> |
| 8 jsTestIsAsync = true; |
| 9 |
| 10 var countersBefore; |
| 11 var iframe = document.getElementById("target"); |
| 12 |
| 13 function onAboutBlankLoad() { |
| 14 setTimeout(function() { |
| 15 countersBefore = getCounterValues(); |
| 16 iframe.onload = null; |
| 17 iframe.src = "resources/link.html"; |
| 18 }, 0); |
| 19 } |
| 20 |
| 21 function onDone() { |
| 22 setTimeout(function() { |
| 23 var countersAfter = getCounterValues(); |
| 24 compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0
}); |
| 25 finishJSTest(); |
| 26 }, 0); |
| 27 } |
| 28 |
| 29 iframe.onload = onAboutBlankLoad; |
| 30 iframe.src = "about:blank"; |
| 31 window.addEventListener("message", onDone, false); |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |