Bug 831400 - Intermittent devtools/webconsole/test/browser_webconsole_bug_764572_output_open_url.js | Timed out while waiting for: complete to initialize the opening tab; r=vporof

This commit is contained in:
Mihai Sucan 2013-04-02 14:13:58 +03:00
parent 4744f71f6a
commit b0874a13a4

View File

@ -125,10 +125,11 @@ function testOnNetActivity_command() {
// check TabOpen event
function onTabOpen(aTab) {
waitForSuccess({
timeout: 10000,
name: "complete to initialize the opening tab",
validatorFn: function()
{
// wait to complete initializing the opend tab.
// wait to complete initialization for the new tab.
let url = aTab.linkedBrowser.currentURI.spec;
return url === TEST_URI;
},
@ -137,7 +138,11 @@ function onTabOpen(aTab) {
gBrowser.removeTab(aTab);
executeSoon(testOnNetActivity_contextmenu);
},
failureFn: testOnNetActivity_contextmenu,
failureFn: function()
{
info("new tab currentURI " + aTab.linkedBrowser.currentURI.spec);
testOnNetActivity_contextmenu();
},
});
}