test_browserGlue_corrupt_nobackup.js File Reference

Go to the source code of this file.

Functions

function run_test ()
 
function continue_test ()
 

Variables

const NS_PLACES_INIT_COMPLETE_TOPIC = "places-init-complete"
 
var os
 
var observer
 

Function Documentation

function continue_test ( )

Definition at line 107 of file test_browserGlue_corrupt_nobackup.js.

Here is the call graph for this function:

function run_test ( )

Definition at line 71 of file test_browserGlue_corrupt_nobackup.js.

Here is the call graph for this function:

Variable Documentation

const NS_PLACES_INIT_COMPLETE_TOPIC = "places-init-complete"

Tests that nsBrowserGlue correctly imports from bookmarks.html if database is corrupt but a JSON backup is not available.

Definition at line 44 of file test_browserGlue_corrupt_nobackup.js.

var observer
Initial value:
= {
observe: function thn_observe(aSubject, aTopic, aData) {
os.removeObserver(this, NS_PLACES_INIT_COMPLETE_TOPIC);
var hs = Cc["@mozilla.org/browser/nav-history-service;1"].
getService(Ci.nsINavHistoryService);
do_check_eq(hs.databaseStatus, hs.DATABASE_STATUS_CORRUPT);
var tm = Cc["@mozilla.org/thread-manager;1"].
getService(Ci.nsIThreadManager);
tm.mainThread.dispatch({
run: function() {
}
}, Ci.nsIThread.DISPATCH_NORMAL);
}
}
}
const Cc
do_check_eq(typeof PlacesUtils,"object")
function continue_test()
getService(Ci.sbIFaceplateManager)
const NS_PLACES_INIT_COMPLETE_TOPIC
const Ci
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe

Definition at line 49 of file test_browserGlue_corrupt_nobackup.js.

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

Definition at line 47 of file test_browserGlue_corrupt_nobackup.js.