Replace usages of SearchService.addOpenSearchEngine in test code with SearchTestUtils.promiseNewSearchEngine.
Categories
(Firefox :: Search, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(2 files)
I want to update SearchService.addOpenSearchEngine to simplify the loading mechanism further. To make it simpler to do, I want to transition our tests to use SearchTestUtils.promiseNewSearchEngine where they are not explicitly testing the API.
This way, it will make it easier to alter the addOpenSearchEngine function signature as most of the changes for tests will be hidden in SearchTestUtils.promiseNewSearchEngine.
Note: ideally in future we'll improve the naming of the test function - I've filed bug 1874917 for that.
| Assignee | ||
Comment 1•1 year ago
|
||
This test was ensuring that we correctly handle invalid searchForm urls.
We can replace that with a simple extension of our test_opensearch tests.
Depends on D198459
Depends on D198459
| Assignee | ||
Comment 2•1 year ago
|
||
This replaces all the test instances, apart from some of the OpenSearch tests where we need to test
the API directly.
Depends on D198722
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1aa8a11ca885
https://hg.mozilla.org/mozilla-central/rev/9572d20d38b7
Description
•