Bug 847863 - Part 2 of 8 - Selectively disable old Download Manager browser-chrome tests. r=enn

This commit is contained in:
Paolo Amadini 2013-08-19 17:23:59 +02:00
parent 7fc132ffcc
commit be3faed4a8
3 changed files with 18 additions and 0 deletions

View File

@ -4,6 +4,12 @@
function test()
{
try {
if (Services.prefs.getBoolPref("browser.download.useJSTransfer")) {
return;
}
} catch (ex) { }
const PREF_BDM_CLOSEWHENDONE = "browser.download.manager.closeWhenDone";
var dm = Cc["@mozilla.org/download-manager;1"].
getService(Ci.nsIDownloadManager);

View File

@ -3,6 +3,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
function test() {
try {
if (Services.prefs.getBoolPref("browser.download.useJSTransfer")) {
return;
}
} catch (ex) { }
waitForExplicitFinish();
let privateWin = null;

View File

@ -61,6 +61,12 @@ var testFuncs = [
function test()
{
try {
if (Services.prefs.getBoolPref("browser.download.useJSTransfer")) {
return;
}
} catch (ex) { }
var dm = Cc["@mozilla.org/download-manager;1"].
getService(Ci.nsIDownloadManager);
var db = dm.DBConnection;