Create a quick suggest test helper to mock remote settings data
Categories
(Firefox :: Address Bar, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: adw, Assigned: daisuke)
References
Details
Attachments
(4 files)
Currently only one type of quick suggest result is fetched from remote settings, adM/Wikipedia, and the tests for these results add mock suggestion objects directly to AdmWikiedpia's suggestions map (here and here), completely bypassing the AdmWikipedia code that deals with remote settings.
That's bad because it doesn't exercise the code that deals with remote settings, and it also doesn't address all the new types of results we want to support that will also be fetched from remote settings. We should come up with a generalized test helper to set up mock data in remote settings. It might be as simple as stubbing QuickSuggestRemoteSettings.rs.get()
like Daisuke did in this patch for addon suggestions.
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 1•1 years ago
|
||
Assignee | ||
Comment 2•1 years ago
|
||
Depends on D178789
Assignee | ||
Comment 3•1 years ago
|
||
Depends on D178790
Assignee | ||
Comment 4•1 years ago
|
||
Depends on D178791
Updated•1 years ago
|
Updated•1 years ago
|
Updated•1 years ago
|
Updated•1 years ago
|
Comment 6•1 years ago
|
||
Backed out for causing xpcshell failures on test_quicksuggest_positionInSuggestions.js
Assignee | ||
Updated•1 years ago
|
Comment 8•1 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c7abb8859b9e
https://hg.mozilla.org/mozilla-central/rev/64c4571a122e
https://hg.mozilla.org/mozilla-central/rev/24e76f31f305
https://hg.mozilla.org/mozilla-central/rev/ecb043fa32f3
Description
•