Bug 1073855 - fix browser_datareporting_notification tests for dialog-based prefs. r=gfritzsche

This commit is contained in:
Mark Hammond 2014-09-30 09:52:39 +10:00
parent 87aa42169a
commit daf46102ef

View File

@ -201,6 +201,11 @@ function test_multiple_windows() {
ok(true, "Advanced preferences opened on info bar button press.");
executeSoon(function soon() {
prefWindowOpened = true;
// If the prefs are being displayed in a dialog we need to close it.
// If in a tab (ie, in-content prefs) it closes with the window.
if (!Services.prefs.getBoolPref("browser.preferences.inContent")) {
prefWin.close();
}
maybeFinish();
});
}, "advanced-pane-loaded", false);