mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 679588 - Fix intermittent test timeout of browser_select_update.js, browser_select_confirm.js, and browser_select_selection.js. r=dtownsend
This commit is contained in:
parent
fb944f3b23
commit
15b7948f79
@ -9,6 +9,11 @@ var gWin;
|
||||
|
||||
function waitForView(aView, aCallback) {
|
||||
var view = gWin.document.getElementById(aView);
|
||||
if (view.parentNode.selectedPanel == view) {
|
||||
aCallback();
|
||||
return;
|
||||
}
|
||||
|
||||
view.addEventListener("ViewChanged", function() {
|
||||
view.removeEventListener("ViewChanged", arguments.callee, false);
|
||||
try {
|
||||
|
@ -59,6 +59,11 @@ var ADDONS = [
|
||||
|
||||
function waitForView(aView, aCallback) {
|
||||
var view = gWin.document.getElementById(aView);
|
||||
if (view.parentNode.selectedPanel == view) {
|
||||
aCallback();
|
||||
return;
|
||||
}
|
||||
|
||||
view.addEventListener("ViewChanged", function() {
|
||||
view.removeEventListener("ViewChanged", arguments.callee, false);
|
||||
aCallback();
|
||||
|
@ -9,6 +9,11 @@ var gWin;
|
||||
|
||||
function waitForView(aView, aCallback) {
|
||||
var view = gWin.document.getElementById(aView);
|
||||
if (view.parentNode.selectedPanel == view) {
|
||||
aCallback();
|
||||
return;
|
||||
}
|
||||
|
||||
view.addEventListener("ViewChanged", function() {
|
||||
view.removeEventListener("ViewChanged", arguments.callee, false);
|
||||
aCallback();
|
||||
|
Loading…
Reference in New Issue
Block a user