diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
commit | 0ddd00f1959c78ce37c14fef3c83401408fca3bf (patch) | |
tree | d408e02767c86cf8aac3acbb86722b03c77ede6f /toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js | |
parent | 20f0905b33cbb18d1caa80c55e2f552c2e18957b (diff) | |
download | UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.gz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.lz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.tar.xz UXP-0ddd00f1959c78ce37c14fef3c83401408fca3bf.zip |
Issue #439 - Remove tests from toolkit/
Diffstat (limited to 'toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js')
-rw-r--r-- | toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js b/toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js deleted file mode 100644 index b41d9884b..000000000 --- a/toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js +++ /dev/null @@ -1,45 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/publicdomain/zero/1.0/ */ - - -add_task(function*() { - // Note that head_autocomplete.js has already added a MozSearch engine. - // Here we add another engine with a search alias. - Services.search.addEngineWithDetails("AliasedMozSearch", "", "doit", "", - "GET", "http://s.example.com/search"); - - do_print("search engine"); - yield check_autocomplete({ - search: "mozilla", - searchParam: "enable-actions", - matches: [ makeSearchMatch("mozilla", { heuristic: true }) ] - }); - - do_print("search engine, uri-like input"); - yield check_autocomplete({ - search: "http:///", - searchParam: "enable-actions", - matches: [ makeSearchMatch("http:///", { heuristic: true }) ] - }); - - do_print("search engine, multiple words"); - yield check_autocomplete({ - search: "mozzarella cheese", - searchParam: "enable-actions", - matches: [ makeSearchMatch("mozzarella cheese", { heuristic: true }) ] - }); - - do_print("search engine, after current engine has changed"); - Services.search.addEngineWithDetails("MozSearch2", "", "", "", "GET", - "http://s.example.com/search2"); - engine = Services.search.getEngineByName("MozSearch2"); - notEqual(Services.search.currentEngine, engine, "New engine shouldn't be the current engine yet"); - Services.search.currentEngine = engine; - yield check_autocomplete({ - search: "mozilla", - searchParam: "enable-actions", - matches: [ makeSearchMatch("mozilla", { engineName: "MozSearch2", heuristic: true }) ] - }); - - yield cleanup(); -}); |