From 17062b2e6dcd464be9b54b87b82cabbac5d372da Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 2 May 2009 00:25:33 +0200 Subject: [PATCH] fix test from bug 489443 to work on SeaMonkey, r=Mardak --- toolkit/components/places/tests/unit/test_empty_tags.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toolkit/components/places/tests/unit/test_empty_tags.js b/toolkit/components/places/tests/unit/test_empty_tags.js index 9a5a0297438..3ace27da54d 100644 --- a/toolkit/components/places/tests/unit/test_empty_tags.js +++ b/toolkit/components/places/tests/unit/test_empty_tags.js @@ -49,6 +49,12 @@ let ts = Cc["@mozilla.org/browser/tagging-service;1"]. let _ = function(some, debug, message) print(Array.slice(arguments).join(" ")); function run_test() { + // always search in history + bookmarks, no matter what the default is + var prefs = Cc["@mozilla.org/preferences-service;1"]. + getService(Ci.nsIPrefBranch); + prefs.setIntPref("browser.urlbar.search.sources", 3); + prefs.setIntPref("browser.urlbar.default.behavior", 0); + let uri = io.newURI("http://uri/", null, null); bm.insertBookmark(bm.toolbarFolder, uri, bm.DEFAULT_INDEX, "title");