Bug 1599549 follow-up: Copy mozmill changes to mochitest; rs=bustage-fix

--HG--
extra : rebase_source : c4871a4a791dd8ba934a8617eef7647777ee1d14
This commit is contained in:
Geoff Lankow 2019-12-11 20:08:50 +13:00
Родитель a596c7a7f0
Коммит 4382aa203a
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -101,7 +101,7 @@ add_task(function test_archive_options_enabled() {
});
function subtest_initial_state(identity) {
plan_for_modal_dialog("archive-options", function(ac) {
plan_for_modal_dialog("Mailnews:archiveOptions", function(ac) {
Assert.equal(
ac.e("archiveGranularity").selectedIndex,
identity.archiveGranularity
@ -117,7 +117,7 @@ function subtest_initial_state(identity) {
"centerscreen,chrome,modal,titlebar,resizable=yes",
identity
);
wait_for_modal_dialog("archive-options");
wait_for_modal_dialog("Mailnews:archiveOptions");
}
add_task(function test_open_archive_options() {
@ -131,10 +131,11 @@ add_task(function test_open_archive_options() {
});
function subtest_save_state(identity, granularity, kfs) {
plan_for_modal_dialog("archive-options", function(ac) {
plan_for_modal_dialog("Mailnews:archiveOptions", function(ac) {
ac.e("archiveGranularity").selectedIndex = granularity;
ac.e("archiveKeepFolderStructure").checked = kfs;
ac.keypress(null, "VK_RETURN", {});
ac.window.document.querySelector("dialog").acceptDialog();
});
mc.window.openDialog(
"chrome://messenger/content/am-archiveoptions.xul",
@ -142,7 +143,7 @@ function subtest_save_state(identity, granularity, kfs) {
"centerscreen,chrome,modal,titlebar,resizable=yes",
identity
);
wait_for_modal_dialog("archive-options");
wait_for_modal_dialog("Mailnews:archiveOptions");
}
add_task(function test_save_archive_options() {