The default bug view has changed. See this FAQ.

Add an interface to mock notifications events

NEW
Unassigned

Status

()

Toolkit
WebExtensions: Frontend
P3
normal
10 months ago
a month ago

People

(Reporter: bsilverberg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [notifications]triaged)

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

10 months ago
Priority: -- → P3
Whiteboard: triaged

Updated

a month ago
Whiteboard: triaged → [notifications]triaged

Updated

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