michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: // Ensure inline autocomplete doesn't return zero frecency pages. michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for zero frecency domain should not autoFill it", michael@0: "moz", michael@0: "moz", michael@0: function () { michael@0: Services.prefs.setBoolPref("browser.urlbar.autoFill.typed", false); michael@0: promiseAddVisits({ uri: NetUtil.newURI("http://mozilla.org/framed_link/"), michael@0: transition: TRANSITION_FRAMED_LINK }); michael@0: } michael@0: ]); michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for zero frecency url should not autoFill it", michael@0: "mozilla.org/f", michael@0: "mozilla.org/f", michael@0: function () { michael@0: Services.prefs.setBoolPref("browser.urlbar.autoFill.typed", false); michael@0: promiseAddVisits({ uri: NetUtil.newURI("http://mozilla.org/framed_link/"), michael@0: transition: TRANSITION_FRAMED_LINK }); michael@0: } michael@0: ]);