Update TestSearchCounts to retrieve search engine after performing a search
Categories
(Toolkit :: Telemetry, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: raphael, Assigned: raphael)
Details
Attachments
(1 file)
Currently this test retrieves the current search engine at test setUp and stores its identifier on the test case object. We later use this to verify the correctness of the keyed histogram data for search counts.
:daleharvey pointed out that the search service is loaded lazily and might not be fully initialized when we try to retrieve the current search engine. A patch landed to addressing this potential problem and calls init explicitly.
:gfritzsche suggested to retrieve the search engine after we've performed searches, which would render the call to init the service unnecessary.
I think that would make a great improvement for the tests, since we try to make no assumptions about the internal workings of Firefox in the tests.
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Deferring the call to retrieve the default search engine without calling init explicitly doesn't seem to work. I'm getting this JavaScript Error: "Something tried to use the search service before it's been properly intialized."
What do you think, shall we close this bug as WONTFIX?
| Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Fine by me, though it might be worth dropping a code comment in the test explaining what you've learned.
| Assignee | ||
Comment 3•6 years ago
|
||
Comment 5•6 years ago
|
||
| bugherder | ||
Description
•