Bug 587582 ReferenceError: gCurrStatus is not defined in various mailnews xpcshell-tests. r=bienvenu

This commit is contained in:
Mark Banner 2010-08-16 19:02:35 +01:00
Родитель 41e09b298b
Коммит a1f2bcb828
14 изменённых файлов: 25 добавлений и 39 удалений

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

@ -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) { },