Go to the source code of this file.
Functions | |
| tests | push ({description:"Export to bookmarks.html if autoExportHTML is true.", exec:function(){do_check_true(bs.getIdForItemAt(bs.toolbarFolder, 0) > 0);ps.setBoolPref(PREF_AUTO_EXPORT_HTML, true);os.notifyObservers(null, TOPIC_QUIT_APPLICATION_GRANTED, null);check_bookmarks_html();check_JSON_backup();do_check_true(ps.getBoolPref(PREF_AUTO_EXPORT_HTML));ps.setBoolPref(PREF_AUTO_EXPORT_HTML, false);next_test();}}) |
| function | finish_test () |
| function | next_test () |
| function | run_test () |
Variables | |
| let | bg |
| let | bs |
| let | ps |
| let | os |
| const | PREF_AUTO_EXPORT_HTML = "browser.bookmarks.autoExportHTML" |
| const | TOPIC_QUIT_APPLICATION_GRANTED = "quit-application-granted" |
| let | tests = [] |
| var | testIndex = 0 |
| function finish_test | ( | ) |
Definition at line 148 of file test_browserGlue_shutdown.js.
| function next_test | ( | ) |
Definition at line 153 of file test_browserGlue_shutdown.js.
| tests push | ( | {description:"Export to bookmarks.html if autoExportHTML is true.", exec:function(){do_check_true(bs.getIdForItemAt(bs.toolbarFolder, 0) > 0);ps.setBoolPref(PREF_AUTO_EXPORT_HTML, true);os.notifyObservers(null, TOPIC_QUIT_APPLICATION_GRANTED, null);check_bookmarks_html();check_JSON_backup();do_check_true(ps.getBoolPref(PREF_AUTO_EXPORT_HTML));ps.setBoolPref(PREF_AUTO_EXPORT_HTML, false);next_test();}} | ) |
| function run_test | ( | ) |
Definition at line 165 of file test_browserGlue_shutdown.js.
| let bg |
Tests that nsBrowserGlue is correctly exporting based on preferences values, and creating bookmarks backup if one does not exist for today.
Definition at line 45 of file test_browserGlue_shutdown.js.
| let bs |
Definition at line 49 of file test_browserGlue_shutdown.js.
| let os |
Definition at line 55 of file test_browserGlue_shutdown.js.
| const PREF_AUTO_EXPORT_HTML = "browser.bookmarks.autoExportHTML" |
Definition at line 58 of file test_browserGlue_shutdown.js.
| let ps |
Definition at line 53 of file test_browserGlue_shutdown.js.
| var testIndex = 0 |
Definition at line 152 of file test_browserGlue_shutdown.js.
| let tests = [] |
Definition at line 62 of file test_browserGlue_shutdown.js.
| const TOPIC_QUIT_APPLICATION_GRANTED = "quit-application-granted" |
Definition at line 60 of file test_browserGlue_shutdown.js.