зеркало из https://github.com/mozilla/gecko-dev.git
JavaScript Test - register and unregister dialog closer on start/stop rather than on before/after page load, no bug, not part of the build
This commit is contained in:
Родитель
54548528cc
Коммит
6e2701ffe6
|
@ -43,10 +43,14 @@ var gCheckInterval = 1000;
|
|||
|
||||
// if jsUnit status doesn't change, force page complete.
|
||||
|
||||
function userOnStart()
|
||||
{
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
function userOnBeforePage()
|
||||
{
|
||||
dlog('userOnBeforePage');
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
var gReport;
|
||||
|
@ -54,7 +58,6 @@ var gReport;
|
|||
function userOnAfterPage()
|
||||
{
|
||||
dlog('userOnAfterPage');
|
||||
unregisterDialogCloser();
|
||||
|
||||
var win = gSpider.mDocument.defaultView;
|
||||
if (win.wrappedJSObject)
|
||||
|
@ -101,6 +104,13 @@ function userOnAfterPage()
|
|||
win.setTimeout("executeList()", 10000);
|
||||
}
|
||||
|
||||
function userOnStop()
|
||||
{
|
||||
// close any pending dialogs
|
||||
closeDialog();
|
||||
unregisterDialogCloser();
|
||||
}
|
||||
|
||||
|
||||
gConsoleListener.onConsoleMessage =
|
||||
function userOnConsoleMessage(s)
|
||||
|
|
|
@ -44,11 +44,21 @@ var gCheckInterval = 1000;
|
|||
|
||||
// if jsUnit status doesn't change, force page complete.
|
||||
|
||||
function userOnStart()
|
||||
{
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
function userOnBeforePage()
|
||||
{
|
||||
dlog('userOnBeforePage');
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
function userOnStop()
|
||||
{
|
||||
// close any pending dialogs
|
||||
closeDialog();
|
||||
unregisterDialogCloser();
|
||||
}
|
||||
|
||||
var gReport;
|
||||
|
@ -56,7 +66,6 @@ var gReport;
|
|||
function userOnAfterPage()
|
||||
{
|
||||
dlog('userOnAfterPage');
|
||||
unregisterDialogCloser();
|
||||
|
||||
var win = gSpider.mDocument.defaultView;
|
||||
if (win.wrappedJSObject)
|
||||
|
|
|
@ -45,10 +45,14 @@ var gCheckInterval = 1000;
|
|||
|
||||
// if jsUnit status doesn't change, force page complete.
|
||||
|
||||
function userOnStart()
|
||||
{
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
function userOnBeforePage()
|
||||
{
|
||||
dlog('userOnBeforePage');
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
var gReport;
|
||||
|
@ -59,6 +63,13 @@ function userOnAfterPage()
|
|||
checkTestCompleted();
|
||||
}
|
||||
|
||||
function userOnStop()
|
||||
{
|
||||
// close any pending dialogs
|
||||
closeDialog();
|
||||
unregisterDialogCloser();
|
||||
}
|
||||
|
||||
function checkTestCompleted()
|
||||
{
|
||||
var win = gSpider.mDocument.defaultView;
|
||||
|
|
|
@ -44,10 +44,14 @@ var gCheckInterval = 1000;
|
|||
|
||||
// if jsUnit status doesn't change, force page complete.
|
||||
|
||||
function userOnStart()
|
||||
{
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
function userOnBeforePage()
|
||||
{
|
||||
dlog('userOnBeforePage');
|
||||
registerDialogCloser();
|
||||
}
|
||||
|
||||
var gReport;
|
||||
|
@ -58,6 +62,13 @@ function userOnAfterPage()
|
|||
checkTestCompleted();
|
||||
}
|
||||
|
||||
function userOnStop()
|
||||
{
|
||||
// close any pending dialogs
|
||||
closeDialog();
|
||||
unregisterDialogCloser();
|
||||
}
|
||||
|
||||
function checkTestCompleted()
|
||||
{
|
||||
var win = gSpider.mDocument.defaultView;
|
||||
|
@ -67,7 +78,6 @@ function checkTestCompleted()
|
|||
}
|
||||
if (win.gPageCompleted)
|
||||
{
|
||||
unregisterDialogCloser();
|
||||
gPageCompleted = true;
|
||||
|
||||
var testcases = win.testcases;
|
||||
|
|
Загрузка…
Ссылка в новой задаче