diff options
Diffstat (limited to 'toolkit/components/search/tests/xpcshell/test_rel_searchform.js')
-rw-r--r-- | toolkit/components/search/tests/xpcshell/test_rel_searchform.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/toolkit/components/search/tests/xpcshell/test_rel_searchform.js b/toolkit/components/search/tests/xpcshell/test_rel_searchform.js deleted file mode 100644 index 79f217e0d..000000000 --- a/toolkit/components/search/tests/xpcshell/test_rel_searchform.js +++ /dev/null @@ -1,33 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/publicdomain/zero/1.0/ */ - -/* - * Tests that <Url rel="searchform"/> is properly recognized as a searchForm. - */ - -"use strict"; - -function run_test() { - removeMetadata(); - updateAppInfo(); - useHttpServer(); - - run_next_test(); -} - -add_task(function* test_rel_searchform() { - let engineNames = [ - "engine-rel-searchform.xml", - "engine-rel-searchform-post.xml", - ]; - - // The final searchForm of the engine should be a URL whose domain is the - // <ShortName> in the engine's XML and that has a ?search parameter. The - // point of the ?search parameter is to avoid accidentally matching the value - // returned as a last resort by Engine's searchForm getter, which is simply - // the prePath of the engine's first HTML <Url>. - let items = engineNames.map(e => ({ name: e, xmlFileName: e })); - for (let engine of yield addTestEngines(items)) { - do_check_eq(engine.searchForm, "http://" + engine.name + "/?search"); - } -}); |