Bug 1090229 - Add better test for FilePicker.modeSave r=followup

This commit is contained in:
Mark Finkle 2014-10-28 17:20:27 -04:00
Родитель d6b227ce95
Коммит 609c6406ab
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -64,12 +64,14 @@ add_test(function filepicker_open() {
}); });
add_test(function filepicker_save() { add_test(function filepicker_save() {
let failed = false;
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
try { try {
fp.init(null, "Save", Ci.nsIFilePicker.modeSave); fp.init(null, "Save", Ci.nsIFilePicker.modeSave);
} catch(ex) { } catch(ex) {
ok(true, "Android does not support FilePicker.modeSave"); failed = true;
} }
ok(failed, "Android does not support FilePicker.modeSave");
run_next_test(); run_next_test();
}); });