Closed Bug 1809637 Opened 2 years ago Closed 2 years ago

Improve console error checks on toolkit search tests

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

For the toolkit search code, we have checks on our xpcshell-tests to ensure that there are no unexpected error messages reported to the console.

Unfortunately due to the way they are implemented (where they report errors as the tests proceed), it can cause infinite recursion, e.g. when currently running test_engine_selector_remote_settings.js.

We should switch to checking the logs at the end of the test, and only reporting after we've finished listening to the console.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62499f5142ce Improve console.error checking for search tests. r=search-reviewers,daleharvey

It appears one of the errors I saw only in one test can sometimes be hit in any test. I've adapted the allow list, and filed bug 1812040 for the errors that were being added.

Flags: needinfo?(standard8)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0656bce00c0 Improve console.error checking for search tests. r=search-reviewers,daleharvey
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: