| <iframe id="target"></iframe> |
| <script src="../../resources/js-test.js"></script> |
| <script src="../../resources/leak-check.js"></script> |
| var iframe = document.getElementById("target"); |
| function onAboutBlankLoad() { |
| getCounterValues(function (counters) { |
| countersBefore = counters; |
| iframe.src = "resources/link.html"; |
| getCounterValues(function (countersAfter) { |
| compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0}); |
| iframe.onload = onAboutBlankLoad; |
| iframe.src = "about:blank"; |
| window.addEventListener("message", onDone, false); |