Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: LayoutTests/fast/dom/document-softleak-mouse-navigation.html

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698