зеркало из https://github.com/mozilla/pjs.git
Reenable test for bug 396024, it should now fail gracefully when no printer is installed on the test machine
This commit is contained in:
Родитель
00862f68bf
Коммит
20c285039b
|
@ -83,6 +83,7 @@ ifdef MOZ_MOCHITEST
|
|||
_TEST_FILES = \
|
||||
test_bug66619.html \
|
||||
test_bug388019.html \
|
||||
test_bug396024.html \
|
||||
test_bug399284.html \
|
||||
test_bug399951.html \
|
||||
test_bug404209.xhtml \
|
||||
|
|
|
@ -55,9 +55,9 @@ function run()
|
|||
netscape.security.PrivilegeManager.enablePrivilege('UniversalPreferencesRead UniversalPreferencesWrite UniversalXPConnect');
|
||||
var printService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
|
||||
.getService(Components.interfaces.nsIPrintSettingsService);
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
if (printService.defaultPrinterName != '') {
|
||||
window.frames[0].frameElement.setAttribute('onload', 'run2()');
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
printpreview();
|
||||
ok(gWbp.doingPrintPreview, "Should be doing print preview");
|
||||
exitprintpreview();
|
||||
|
@ -65,7 +65,8 @@ function run()
|
|||
printpreview();
|
||||
window.frames[0].location.reload();
|
||||
} else {
|
||||
todo(false, "No printer seems installed on this machine, that is necessary for this test")
|
||||
todo(false, "No printer seems installed on this machine, that is necessary for this test");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче