Bug 532035 /mailnews/test/resources/ cause xpcshell-tests fail on JS strict mode. r=Standard8.

This commit is contained in:
Jae-Seong Lee-Russo 2010-01-11 22:15:07 +00:00
Родитель ef1d90f990
Коммит f579b4ce9e
4 изменённых файлов: 25 добавлений и 9 удалений

Просмотреть файл

@ -212,7 +212,7 @@ POP3Pump.prototype.run = function run()
this._testNext();
};
gPOP3Pump = new POP3Pump();
var gPOP3Pump = new POP3Pump();
gPOP3Pump._incomingServer = gPOP3Pump._createPop3ServerAndLocalFolders();
function _checkPumpBusy() { gPOP3Pump._checkBusy(); }

Просмотреть файл

@ -42,6 +42,7 @@ var alertUtilsPrompts = {
}
do_throw("alert unexpectedly called: " + aText + "\n");
return;
},
alertCheck: function(aDialogTitle, aText, aCheckMsg, aCheckState) {
@ -51,6 +52,7 @@ var alertUtilsPrompts = {
}
do_throw("alertCheck unexpectedly called: " + aText + "\n");
return;
},
confirm: function(aDialogTitle, aText) {
@ -59,6 +61,7 @@ var alertUtilsPrompts = {
}
do_throw("confirm unexpectedly called: " + aText + "\n");
return false;
},
confirmCheck: function(aDialogTitle, aText, aCheckMsg, aCheckState) {
@ -67,6 +70,7 @@ var alertUtilsPrompts = {
}
do_throw("confirmCheck unexpectedly called: " + aText + "\n");
return false;
},
confirmEx: function(aDialogTitle, aText, aButtonFlags, aButton0Title,
@ -77,6 +81,7 @@ var alertUtilsPrompts = {
}
do_throw("confirmEx unexpectedly called: " + aText + "\n");
return 0;
},
prompt: function(aDialogTitle, aText, aValue, aCheckMsg, aCheckState) {
@ -85,6 +90,7 @@ var alertUtilsPrompts = {
}
do_throw("prompt unexpectedly called: " + aText + "\n");
return false;
},
promptUsernameAndPassword: function(aDialogTitle, aText, aUsername,
@ -95,6 +101,7 @@ var alertUtilsPrompts = {
}
do_throw("promptUsernameAndPassword unexpectedly called: " + aText + "\n");
return false;
},
promptPassword: function(aDialogTitle, aText, aPassword, aCheckMsg,
@ -105,17 +112,18 @@ var alertUtilsPrompts = {
}
do_throw("promptPassword unexpectedly called: " + aText + "\n");
return false;
},
select: function(aDialogTitle, aText, aCount, aSelectList,
aOutSelection) {
if (typeof select == "function") {
select(aDialogTitle, aText, aCount, aSelectList,
aOutSelection);
return;
return select(aDialogTitle, aText, aCount, aSelectList,
aOutSelection);
}
do_throw("select unexpectedly called: " + aText + "\n");
return false;
},
QueryInterface: XPCOMUtils.generateQI([Ci.nsIPrompt])
@ -129,6 +137,7 @@ var alertUtilsPromptService = {
}
do_throw("alertPS unexpectedly called: " + aText + "\n");
return;
},
alertCheck: function(aParent, aDialogTitle, aText, aCheckMsg, aCheckState) {
@ -138,6 +147,7 @@ var alertUtilsPromptService = {
}
do_throw("alertCheckPS unexpectedly called: " + aText + "\n");
return;
},
confirm: function(aParent, aDialogTitle, aText) {
@ -146,6 +156,7 @@ var alertUtilsPromptService = {
}
do_throw("confirmPS unexpectedly called: " + aText + "\n");
return false;
},
confirmCheck: function(aParent, aDialogTitle, aText, aCheckMsg, aCheckState) {
@ -155,6 +166,7 @@ var alertUtilsPromptService = {
}
do_throw("confirmCheckPS unexpectedly called: " + aText + "\n");
return false;
},
confirmEx: function(aParent, aDialogTitle, aText, aButtonFlags, aButton0Title,
@ -166,6 +178,7 @@ var alertUtilsPromptService = {
}
do_throw("confirmExPS unexpectedly called: " + aText + "\n");
return 0;
},
prompt: function(aParent, aDialogTitle, aText, aValue, aCheckMsg,
@ -176,6 +189,7 @@ var alertUtilsPromptService = {
}
do_throw("promptPS unexpectedly called: " + aText + "\n");
return false;
},
promptUsernameAndPassword: function(aParent, aDialogTitle, aText, aUsername,
@ -187,6 +201,7 @@ var alertUtilsPromptService = {
}
do_throw("promptUsernameAndPasswordPS unexpectedly called: " + aText + "\n");
return false;
},
promptPassword: function(aParent, aDialogTitle, aText, aPassword, aCheckMsg,
@ -197,17 +212,18 @@ var alertUtilsPromptService = {
}
do_throw("promptPasswordPS unexpectedly called: " + aText + "\n");
return false;
},
select: function(aParent, aDialogTitle, aText, aCount, aSelectList,
aOutSelection) {
if (typeof selectPS == "function") {
selectPS(aParent, aDialogTitle, aText, aCount, aSelectList,
aOutSelection);
return;
return selectPS(aParent, aDialogTitle, aText, aCount, aSelectList,
aOutSelection);
}
do_throw("selectPS unexpectedly called: " + aText + "\n");
return false;
},
createInstance: function createInstance(outer, iid) {

Просмотреть файл

@ -226,7 +226,7 @@ function parameterizeTest(aTestFunc, aParameters) {
return [aTestFunc, aParameters];
}
DEFAULT_LONGEST_TEST_RUN_CONCEIVABLE_SECS = 600;
const DEFAULT_LONGEST_TEST_RUN_CONCEIVABLE_SECS = 600;
function async_run_tests(aTests, aLongestTestRunTimeConceivableInSecs) {
if (aLongestTestRunTimeConceivableInSecs == null)
aLongestTestRunTimeConceivableInSecs =

Просмотреть файл

@ -292,7 +292,7 @@ function _synthMessagesToFakeRep(aSynthMessages) {
}
SEARCH_TERM_MAP_HELPER = {
const SEARCH_TERM_MAP_HELPER = {
subject: Components.interfaces.nsMsgSearchAttrib.Subject,
body: Components.interfaces.nsMsgSearchAttrib.Body,
from: Components.interfaces.nsMsgSearchAttrib.Sender,