[tbb-commits] [tor-browser/tor-browser-85.0b1-10.5-1] fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
gk at torproject.org
gk at torproject.org
Tue Jan 12 08:37:43 UTC 2021
commit 5078ee1f284b7dcb0893e76241f28b9c9fc7d3c9
Author: Alex Catarineu <acat at torproject.org>
Date: Wed Nov 4 21:04:52 2020 +0100
fixup! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
---
tbb-tests/browser_tor_omnibox.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tbb-tests/browser_tor_omnibox.js b/tbb-tests/browser_tor_omnibox.js
index e18b2a84a3d8..f3efd0c3da5e 100644
--- a/tbb-tests/browser_tor_omnibox.js
+++ b/tbb-tests/browser_tor_omnibox.js
@@ -1,14 +1,14 @@
// # Test Tor Omnibox
// Check what search engines are installed in the search box.
-function test() {
+add_task(async function() {
// Grab engine IDs.
let browserSearchService = Components.classes["@mozilla.org/browser/search-service;1"]
- .getService(Components.interfaces.nsIBrowserSearchService),
- engineIDs = browserSearchService.getEngines().map(e => e.identifier);
+ .getService(Components.interfaces.nsISearchService),
+ engineIDs = (await browserSearchService.getEngines()).map(e => e.identifier);
// Check that we have the correct engines installed, in the right order.
is(engineIDs[0], "ddg", "Default search engine is duckduckgo");
is(engineIDs[1], "youtube", "Secondary search engine is youtube");
is(engineIDs[2], "google", "Google is third search engine");
-}
+});
More information about the tbb-commits
mailing list