mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: enable navigator.setAppBadge/clearAppBadge (#27067)
This commit is contained in:
committed by
GitHub
parent
8b74361b0c
commit
c5a41defbd
@@ -22,6 +22,13 @@ describe('chromium feature', () => {
|
||||
expect(() => {
|
||||
navigator.setAppBadge(42);
|
||||
}).to.not.throw();
|
||||
expect(() => {
|
||||
// setAppBadge with no argument should show dot
|
||||
navigator.setAppBadge();
|
||||
}).to.not.throw();
|
||||
expect(() => {
|
||||
navigator.clearAppBadge();
|
||||
}).to.not.throw();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user