fix test from bug 489443 to work on SeaMonkey, r=Mardak
authorRobert Kaiser <kairo@kairo.at>
Sat, 02 May 2009 00:25:33 +0200
changeset 27939 50fe1e2ca505e54c7ca778886f0cd75f25a088c5
parent 27938 30f91b70a4411e0766d96d23cd63fa2a6e4445e4
child 27940 3e5fe06a9d68706aeedb21239e019ec05cf04098
push id6788
push userkairo@kairo.at
push dateFri, 01 May 2009 22:26:11 +0000
treeherdermozilla-central@50fe1e2ca505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak
bugs489443
milestone1.9.2a1pre
fix test from bug 489443 to work on SeaMonkey, r=Mardak
toolkit/components/places/tests/unit/test_empty_tags.js
--- a/toolkit/components/places/tests/unit/test_empty_tags.js
+++ b/toolkit/components/places/tests/unit/test_empty_tags.js
@@ -44,16 +44,22 @@ let bm = Cc["@mozilla.org/browser/nav-bo
 let io = Cc["@mozilla.org/network/io-service;1"].
   getService(Ci.nsIIOService);
 let ts = Cc["@mozilla.org/browser/tagging-service;1"].
   getService(Ci.nsITaggingService);
 
 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");
 
   _("Adding 3 tags to the bookmark");
   let tagIds = [];
   for (let i = 0; i < 3; i++) {
     _("Tagging uri with tag:", i);
     ts.tagURI(uri, ["" + i]);