| Index: LayoutTests/fast/dom/document-softleak-mouse-navigation.html
|
| diff --git a/LayoutTests/fast/dom/document-softleak-mouse-navigation.html b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html
|
| index f339d2b5f3fd0722b8d8fd968e4b09559a56d970..91b679632d24ca5d3a8e2b461de9f35f1ffdd895 100644
|
| --- a/LayoutTests/fast/dom/document-softleak-mouse-navigation.html
|
| +++ b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html
|
| @@ -11,19 +11,18 @@ var countersBefore;
|
| var iframe = document.getElementById("target");
|
|
|
| function onAboutBlankLoad() {
|
| - setTimeout(function() {
|
| - countersBefore = getCounterValues();
|
| + getCounterValues(function (counters) {
|
| + countersBefore = counters;
|
| iframe.onload = null;
|
| iframe.src = "resources/link.html";
|
| - }, 0);
|
| + });
|
| }
|
|
|
| function onDone() {
|
| - setTimeout(function() {
|
| - var countersAfter = getCounterValues();
|
| + getCounterValues(function (countersAfter) {
|
| compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0});
|
| finishJSTest();
|
| - }, 0);
|
| + });
|
| }
|
|
|
| iframe.onload = onAboutBlankLoad;
|
|
|