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: add_autocomplete_test([ michael@0: "Searching for non-keyworded entry should autoFill it", michael@0: "moz", michael@0: "mozilla.org/", michael@0: function () { michael@0: addBookmark({ url: "http://mozilla.org/test/" }); michael@0: } michael@0: ]); michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for keyworded entry should not autoFill it", michael@0: "moz", michael@0: "moz", michael@0: function () { michael@0: addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); michael@0: } michael@0: ]); michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for more than keyworded entry should autoFill it", michael@0: "mozi", michael@0: "mozilla.org/", michael@0: function () { michael@0: addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); michael@0: } michael@0: ]); michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for less than keyworded entry should autoFill it", michael@0: "mo", michael@0: "mozilla.org/", michael@0: function () { michael@0: addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); michael@0: } michael@0: ]); michael@0: michael@0: add_autocomplete_test([ michael@0: "Searching for keyworded entry is case-insensitive", michael@0: "MoZ", michael@0: "MoZ", michael@0: function () { michael@0: addBookmark({ url: "http://mozilla.org/test/", keyword: "moz" }); michael@0: } michael@0: ]);