michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // We need to run this test separately since DirectoryProvider persists BMarks michael@0: michael@0: function run_test() { michael@0: let dir = gProfD.clone(); michael@0: let tfile = writeTestFile(dir, "bookmarkfile.test"); michael@0: gPrefSvc.setCharPref("browser.bookmarks.file", tfile.path); michael@0: michael@0: let bmarks = gDirSvc.get("BMarks", Ci.nsIFile); michael@0: do_check_true(tfile.equals(bmarks)); michael@0: }