Add an interface to mock notifications events

NEW
Unassigned

Status

()

Toolkit
WebExtensions: Frontend
P3
normal
a year ago
3 months ago

People

(Reporter: bsilverberg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [notifications]triaged)

(Reporter)

Description

a year ago
As per https://bugzilla.mozilla.org/show_bug.cgi?id=1275363#c8, we cannot really test the code in `emitAndDelete` because the only real event we can trigger in a test is `onClosed`, via `clear`, but `clear` itself also deletes the notification.

[1] https://dxr.mozilla.org/mozilla-central/source/toolkit/components/extensions/ext-notifications.js#57

Updated

a year ago
Priority: -- → P3
Whiteboard: triaged

Updated

3 months ago
Whiteboard: triaged → [notifications]triaged

Updated

3 months ago
Component: WebExtensions: Untriaged → WebExtensions: Frontend
You need to log in before you can comment on or make changes to this bug.