bug 471886 - Make places autocomplete tests even more robust against default prefs, r=Mardak

This commit is contained in:
Robert Kaiser 2009-01-10 16:29:17 +01:00
Родитель 0639285940
Коммит f757a751ea
4 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -206,6 +206,7 @@ function run_test() {
print("\n");
// always search in history + bookmarks, no matter what the default is
prefs.setIntPref("browser.urlbar.search.sources", 3);
prefs.setIntPref("browser.urlbar.default.behavior", 0);
// Search is asynchronous, so don't let the test finish immediately
do_test_pending();

Просмотреть файл

@ -247,6 +247,7 @@ function run_test() {
// always search in history + bookmarks, no matter what the default is
prefs.setIntPref("browser.urlbar.search.sources", 3);
prefs.setIntPref("browser.urlbar.default.behavior", 0);
// Search is asynchronous, so don't let the test finish immediately
do_test_pending();

Просмотреть файл

@ -167,6 +167,7 @@ function run_test() {
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);
tagssvc.tagURI(uri1, ["Foo"]);
tagssvc.tagURI(uri2, ["FOO"]);

Просмотреть файл

@ -190,6 +190,7 @@ function run_test() {
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);
tagssvc.tagURI(uri1, ["foo"]);
tagssvc.tagURI(uri2, ["bar"]);