mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
d505e6560d
commit
2d0bcec629
@ -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();
|
||||
}
|
||||
|
@ -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:" } ]);
|
||||
|
@ -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" },
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user