Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / document-softleak-mouse-navigation.html
index f339d2b..91b6796 100644 (file)
@@ -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;