Bug 605365 - Use waitForFirstPaint() in content popup test (r=mfinkle)

This commit is contained in:
Lucas Rocha 2011-09-19 09:46:28 -07:00
parent 1634ce0ddf
commit 2e5703c208

View File

@ -20,14 +20,9 @@ function test() {
}
});
let startupInfo = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup).getStartupInfo();
if (!("firstPaint" in startupInfo))
waitFor(function() { newTab = Browser.addTab(testURL, true); }, function() {
let startupInfo = Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup).getStartupInfo();
return ("firstPaint" in startupInfo);
}, Date.now() + 3000);
else
waitForFirstPaint(function() {
newTab = Browser.addTab(testURL, true);
});
}
//------------------------------------------------------------------------------