Bug 492476 - [MacOSX] mochitest-chrome: the 3 layout/base/tests/test_printpreview*.xul need to report 'todo'; (Av1) Remove useless |var printerEnumerator|, Use a todo().

r=roc.
This commit is contained in:
Serge Gautherie 2010-04-14 02:24:47 +02:00
Родитель 20a665bac7
Коммит b8378d8de6
3 изменённых файлов: 15 добавлений и 15 удалений

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

@ -54,12 +54,12 @@ function run()
.getService(Components.interfaces.nsIPrintSettingsService);
try {
var printerEnumerator = Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
} catch(e) {
//don't try to test on Mac, since the print preview code doesn't work there
SimpleTest.finish();
return;
todo(false, "Test skipped on MacOSX, as the print preview code doesn't work there");
SimpleTest.finish();
return;
}
if (printService.defaultPrinterName != '') {

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

@ -54,12 +54,12 @@ function run1()
.getService(Components.interfaces.nsIPrintSettingsService);
try {
var printerEnumerator = Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
} catch(e) {
//don't try to test on Mac, since the print preview code doesn't work there
SimpleTest.finish();
return;
todo(false, "Test skipped on MacOSX, as the print preview code doesn't work there");
SimpleTest.finish();
return;
}
if (printService.defaultPrinterName != '') {

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

@ -55,12 +55,12 @@ function runTests()
.getService(Components.interfaces.nsIPrintSettingsService);
try {
var printerEnumerator = Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
Components.classes["@mozilla.org/gfx/printerenumerator;1"]
.getService(Components.interfaces.nsIPrinterEnumerator);
} catch(e) {
//don't try to test on Mac, since the print preview code doesn't work there
SimpleTest.finish();
return;
todo(false, "Test skipped on MacOSX, as the print preview code doesn't work there");
SimpleTest.finish();
return;
}
if (printService.defaultPrinterName != '') {