Bug 587582 ReferenceError: gCurrStatus is not defined in various mailnews xpcshell-tests. r=bienvenu
This commit is contained in:
Родитель
41e09b298b
Коммит
a1f2bcb828
|
@ -160,8 +160,7 @@ function doTest(test)
|
|||
// Set a limit of three seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -195,8 +195,7 @@ function doTest(test)
|
|||
do_timeout(10000, function(){
|
||||
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -210,8 +210,7 @@ function doTest(test)
|
|||
// Set a limit in case the notifications haven't arrived (i.e. a problem)
|
||||
do_timeout(10000, function() {
|
||||
if(gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -71,8 +71,7 @@ function doTest(test)
|
|||
// Set a limit of 10 seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -140,8 +140,7 @@ function doTest(test)
|
|||
// Set a limit of three seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -265,8 +265,7 @@ function doTest(test)
|
|||
// Set a limit of 10 seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -169,8 +169,7 @@ function doTest(test)
|
|||
// Set a limit of ten seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
@ -188,7 +187,7 @@ function doTest(test)
|
|||
|
||||
// nsIMsgCopyServiceListener implementation - runs next test when copy
|
||||
// is completed.
|
||||
var CopyListener =
|
||||
var CopyListener =
|
||||
{
|
||||
OnStartCopy: function() {},
|
||||
OnProgress: function(aProgress, aProgressMax) {},
|
||||
|
|
|
@ -150,8 +150,7 @@ function doTest()
|
|||
do_timeout(10000, function()
|
||||
{
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -487,8 +487,7 @@ function doTest()
|
|||
do_timeout(10000, function()
|
||||
{
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
@ -628,7 +627,7 @@ DBListener.prototype =
|
|||
{
|
||||
this.counts.onParentChanged++;
|
||||
},
|
||||
|
||||
|
||||
onAnnouncerGoingAway:
|
||||
function onAnnouncerGoingAway(instigator)
|
||||
{
|
||||
|
@ -639,25 +638,25 @@ DBListener.prototype =
|
|||
catch (e) {dump(" listener not found\n");}
|
||||
this.counts.onAnnouncerGoingAway++;
|
||||
},
|
||||
|
||||
|
||||
onReadChanged:
|
||||
function onReadChanged(aInstigator)
|
||||
{
|
||||
this.counts.onReadChanged++;
|
||||
},
|
||||
|
||||
|
||||
onJunkScoreChanged:
|
||||
function onJunkScoreChanged(aInstigator)
|
||||
{
|
||||
this.counts.onJunkScoreChanged++;
|
||||
},
|
||||
|
||||
|
||||
onHdrPropertyChanged:
|
||||
function onHdrPropertyChanged(aHdrToChange, aPreChange, aStatus, aInstigator)
|
||||
{
|
||||
this.counts.onHdrPropertyChanged++;
|
||||
},
|
||||
|
||||
|
||||
onEvent:
|
||||
function onEvent(aDB, aEvent)
|
||||
{
|
||||
|
|
|
@ -160,8 +160,7 @@ function doTest(test)
|
|||
do_timeout(10000, function()
|
||||
{
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
@ -179,7 +178,7 @@ function doTest(test)
|
|||
|
||||
// nsIMsgCopyServiceListener implementation - runs next test when copy
|
||||
// is completed.
|
||||
var CopyListener =
|
||||
var CopyListener =
|
||||
{
|
||||
OnStartCopy: function() {},
|
||||
OnProgress: function(aProgress, aProgressMax) {},
|
||||
|
|
|
@ -222,8 +222,7 @@ function doTest(test)
|
|||
// Set a limit of ten seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file tests undoing of an imap delete to the trash.
|
||||
// This file tests undoing of an imap delete to the trash.
|
||||
// There are three main cases:
|
||||
// 1. Normal undo
|
||||
// 2. Undo after the source folder has been compacted.
|
||||
|
@ -92,7 +92,7 @@ const gTestArray =
|
|||
function undoDelete() {
|
||||
gMsgWindow.transactionManager.undoTransaction();
|
||||
// after undo, we select the trash and then the inbox, so that we sync
|
||||
// up with the server, and clear out the effects of having done the
|
||||
// up with the server, and clear out the effects of having done the
|
||||
// delete offline.
|
||||
let trash = gRootFolder.getChildNamed("Trash");
|
||||
trash.QueryInterface(Ci.nsIMsgImapMailFolder)
|
||||
|
@ -197,8 +197,7 @@ function doTest(test)
|
|||
// Set a limit of ten seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -179,8 +179,7 @@ function doTest()
|
|||
// Set a limit of ten seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
|
|
@ -91,9 +91,8 @@ function doTest(test)
|
|||
var testFn = gTestArray[test-1];
|
||||
// Set a limit of 10 seconds; if the notifications haven't arrived by then there's a problem.
|
||||
do_timeout_function(10000, function(){
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name +
|
||||
", current status is " + gCurrStatus);
|
||||
if (gCurTestNum == test)
|
||||
do_throw("Notifications not received in 10000 ms for operation " + testFn.name);
|
||||
}
|
||||
);
|
||||
try {
|
||||
|
@ -112,7 +111,7 @@ function doTest(test)
|
|||
}
|
||||
}
|
||||
|
||||
var UrlListener =
|
||||
var UrlListener =
|
||||
{
|
||||
OnStartRunningUrl: function(url) { },
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче