Add an interface to mock notifications events

NEW
Unassigned

Status

P5
normal
3 years ago
7 months ago

People

(Reporter: bsilverberg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [notifications])

(Reporter)

Description

3 years 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

3 years ago
Priority: -- → P3
Whiteboard: triaged

Updated

2 years ago
Whiteboard: triaged → [notifications]triaged

Updated

2 years ago
Component: WebExtensions: Untriaged → WebExtensions: Frontend
Priority: P3 → P5
Whiteboard: [notifications]triaged → [notifications]

Updated

7 months ago
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.