Closed Bug 1641468 Opened 1 month ago Closed 1 month ago

Generate platform message stub using a mochitest, like for other stubs

Categories

(DevTools :: Console, task)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

At the moment, a mocha test is testing platform messages by having hand-written stubs, which is very brittle.
Let's use a mochitest to generate those stubs, like we do for other type of resources.

This patch adds a mochitest that will be responsible to
generate and update platform messages stubs, which is what
we already have for all the other type of resources we handle
in the console.
This means the mocha test asserting the rendering of platform
messages can use those stubs instead of hand-written stubs we
have at the moment.

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2a670d8c9c3e
Add platform message stub test. r=ochameau.
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
You need to log in before you can comment on or make changes to this bug.