Open Bug 1915368 Opened 1 year ago Updated 1 year ago

Use TestUtils.consoleMessageObserved in dom/worklet tests

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

People

(Reporter: standard8, Unassigned)

References

Details

This was picked up in the review of bug 1914617.

In the dom/worklet tests, there's a few tests that are adding a listener to ConsoleAPIStorage waiting for the message to come in, and then processing and removing the message.

These structures can be replaced by using TestUtils.consoleMessageObserved and adjusting the test to await the message to be observed. configureTest is already expected to be async so there shouldn't need to be changes to the harness.

You need to log in before you can comment on or make changes to this bug.