44 let
histsvc =
Cc[
"@mozilla.org/browser/nav-history-service;1"].
46 let
bhist = histsvc.QueryInterface(
Ci.nsIBrowserHistory);
48 const TEST_URI =
uri(
"http://mozilla.com/privatebrowsing");
49 const TITLE_1 =
"Title 1";
50 const TITLE_2 =
"Title 2";
52 bhist.removeAllPages();
54 bhist.addPageWithDetails(
TEST_URI, TITLE_1, Date.now() * 1000);
57 pb.privateBrowsingEnabled =
true;
59 bhist.addPageWithDetails(
TEST_URI, TITLE_2, Date.now() * 2000);
62 pb.privateBrowsingEnabled =
false;
66 pb.privateBrowsingEnabled =
true;
68 bhist.setPageTitle(
TEST_URI, TITLE_2);
71 pb.privateBrowsingEnabled =
false;
75 bhist.removeAllPages();
do_check_eq(typeof PlacesUtils,"object")
getService(Ci.sbIFaceplateManager)
function run_test_on_all_services()
var PRIVATEBROWSING_CONTRACT_ID