mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 605365 - Use waitForFirstPaint() in content popup test (r=mfinkle)
This commit is contained in:
parent
1634ce0ddf
commit
2e5703c208
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user