зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1090229 - Add better test for FilePicker.modeSave r=followup
This commit is contained in:
Родитель
d6b227ce95
Коммит
609c6406ab
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче