Closed Bug 1900108 Opened 1 year ago Closed 1 year ago

Replace/remove mochitests that does not need mock service

Categories

(Core :: DOM: Notifications, task)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(2 files)

dom/notification/test/mochitest/MockServices.js mocks nsIAlertsService but only on the content process, and thus it stops working with the change in bug 1891807. I think at least part of those tests are already covered by WPT and can go, and for others that require click events can go web-platform/mozilla with some test-only clicking function. Doing so will break the tests on GeckoView for now, but it doesn't make much sense there either when the actual nsIAlertsService backend is broken.

Bug 1901282 will do the migration, while it seems some tests doesn't need mock at all. This bug is about potential migration to WPT (or removal if already covered).

See Also: → 1901282
Summary: Figure out what to do with mocked nsIAlertsService in mochitests → Replace/remove mochitests that does not need mock service
Assignee: nobody → krosylight
Status: NEW → ASSIGNED

Some dom/workers tests depending on event handlers of Notification interface are broken on Android because of no support. This patch disables them for now as there's no point to hide the breakage by using the mock.

Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/04a1568edf68 Part 1: Remove redundant NotificationTest.js imports r=asuth https://hg.mozilla.org/integration/autoland/rev/112724a7654c Part 2: Remove redundant uses of mock service r=asuth
Regressions: 1902096
Regressions: 1902098
No longer regressions: 1902096
No longer regressions: 1902098
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: