test_browserGlue_shutdown.js File Reference

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 Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Variable Documentation

let bg
Initial value:
= Cc["@mozilla.org/browser/browserglue;1"].
getService(Ci.nsIBrowserGlue)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

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
Initial value:
= Cc["@mozilla.org/browser/nav-bookmarks-service;1"].
getService(Ci.nsINavBookmarksService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

Definition at line 49 of file test_browserGlue_shutdown.js.

let os
Initial value:
= Cc["@mozilla.org/observer-service;1"].
getService(Ci.nsIObserverService)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

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
Initial value:
= Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefBranch)
const Cc
getService(Ci.sbIFaceplateManager)
const Ci

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.