bug 541746 - fix test_frecency.js to work on SeaMonkey, r=dietrich
authorRobert Kaiser <kairo@kairo.at>
Fri, 19 Mar 2010 17:21:59 +0100
changeset 39643 1110220cedd45aa5177adf151434275009894a96
parent 39642 ebfe0dc025da520c9211961dc97d13f6a6e0c6be
child 39644 c4654f66c6e0dcca8e5a4e7902a1b50385101dc5
push id12310
push userkairo@kairo.at
push dateFri, 19 Mar 2010 16:22:58 +0000
treeherdermozilla-central@1110220cedd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdietrich
bugs541746
milestone1.9.3a4pre
bug 541746 - fix test_frecency.js to work on SeaMonkey, r=dietrich
toolkit/components/places/tests/unit/test_frecency.js
--- a/toolkit/components/places/tests/unit/test_frecency.js
+++ b/toolkit/components/places/tests/unit/test_frecency.js
@@ -287,16 +287,22 @@ function() {
   ensure_results([uri4, uri3], "a");
 }
 ];
 
 /**
  * Test adaptive autocomplete
  */
 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);
+
   do_test_pending();
   next_test();
 }
 
 function next_test() {
   if (tests.length) {
     remove_all_bookmarks();
     let test = tests.shift();