Bug 1041262 Disable autofilling of search engines to avoid failures in unified complete tests when searchengines is in the platform directory. r=mak

This commit is contained in:
Hiroyuki Ikezoe 2014-09-09 10:48:28 +01:00
parent d505e6560d
commit 2d0bcec629
4 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,7 @@ function* cleanup() {
Services.prefs.clearUserPref("browser.urlbar.autocomplete.enabled");
Services.prefs.clearUserPref("browser.urlbar.autoFill");
Services.prefs.clearUserPref("browser.urlbar.autoFill.typed");
Services.prefs.clearUserPref("browser.urlbar.autoFill.searchEngines");
remove_all_bookmarks();
yield promiseClearHistory();
}

View File

@ -8,6 +8,8 @@
*/
add_task(function* test_javascript_match() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", false);
let uri1 = NetUtil.newURI("http://abc/def");
let uri2 = NetUtil.newURI("javascript:5");
yield promiseAddVisits([ { uri: uri1, title: "Title with javascript:" } ]);

View File

@ -8,6 +8,8 @@
*/
add_task(function* test_match_beginning() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", false);
let uri1 = NetUtil.newURI("http://x.com/y");
let uri2 = NetUtil.newURI("https://y.com/x");
yield promiseAddVisits([ { uri: uri1, title: "a b" },

View File

@ -18,6 +18,8 @@ let katakana = ["\u30a8", "\u30c9"]; // E, Do
let ideograph = ["\u4efb", "\u5929", "\u5802"]; // Nin Ten Do
add_task(function* test_escape() {
Services.prefs.setBoolPref("browser.urlbar.autoFill.searchEngines", false);
let uri1 = NetUtil.newURI("http://matchme/");
let uri2 = NetUtil.newURI("http://dontmatchme/");
let uri3 = NetUtil.newURI("http://title/1");