Bug 1536744 - Fix test_search_suggestions.js - Creating an ftp URL doesn't fail if the ftp protocol handler is disabled r=baku

Differential Revision: https://phabricator.services.mozilla.com/D30711

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-05-28 14:17:04 +00:00
Родитель d0eb46c5d5
Коммит 89c55d7dfe
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -971,11 +971,16 @@ add_task(async function avoid_http_url_suggestions() {
],
});
// This is still a valid ftp URL even if FTP support is disabled.
await check_autocomplete({
search: "ftp://test",
searchParam: "enable-actions",
matches: [
makeSearchMatch("ftp://test", { engineName: ENGINE_NAME, heuristic: true }),
{
uri: makeActionURI("visiturl", { url: "ftp://test/", input: "ftp://test" }),
style: [ "action", "visiturl", "heuristic" ],
title: "ftp://test/",
},
],
});