зеркало из https://github.com/mozilla/gecko-dev.git
bug 471886 - Make places autocomplete tests even more robust against default prefs, r=Mardak
This commit is contained in:
Родитель
0639285940
Коммит
f757a751ea
|
@ -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"]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче