michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function run_test() michael@0: { michael@0: // Make sure that the storage component exposes its database connection. michael@0: let storage = LoginTest.initStorage(OUTDIR, "signons-empty.sqlite"); michael@0: do_check_true(storage instanceof Ci.nsIInterfaceRequestor); michael@0: let db = storage.getInterface(Ci.mozIStorageConnection); michael@0: do_check_neq(db, null); michael@0: do_check_true(db.connectionReady); michael@0: michael@0: // Make sure that the login manager exposes its the storage component's michael@0: // database connection. michael@0: let lm = Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager); michael@0: do_check_true(lm instanceof Ci.nsIInterfaceRequestor); michael@0: db = lm.getInterface(Ci.mozIStorageConnection); michael@0: do_check_neq(db, null); michael@0: do_check_true(db.connectionReady); michael@0: }