Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / document-softleak-mouse-navigation.html
blob91b679632d24ca5d3a8e2b461de9f35f1ffdd895
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;
10 var countersBefore;
11 var iframe = document.getElementById("target");
13 function onAboutBlankLoad() {
14 getCounterValues(function (counters) {
15 countersBefore = counters;
16 iframe.onload = null;
17 iframe.src = "resources/link.html";
18 });
21 function onDone() {
22 getCounterValues(function (countersAfter) {
23 compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0});
24 finishJSTest();
25 });
28 iframe.onload = onAboutBlankLoad;
29 iframe.src = "about:blank";
30 window.addEventListener("message", onDone, false);
31 </script>
32 </body>
33 </html>