mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
feat: allow macOS tray to maintain position (#47838)
* feat: allow macOS tray to maintain position * refactor: just use guid * test: fixup tests * docs: clarify UUID format
This commit is contained in:
@@ -30,13 +30,13 @@ describe('tray module', () => {
|
||||
}).to.throw(/Failed to load image from path (.+)/);
|
||||
});
|
||||
|
||||
ifit(process.platform === 'win32')('throws a descriptive error if an invalid guid is given', () => {
|
||||
ifit(process.platform !== 'linux')('throws a descriptive error if an invalid guid is given', () => {
|
||||
expect(() => {
|
||||
tray = new Tray(nativeImage.createEmpty(), 'I am not a guid');
|
||||
}).to.throw('Invalid GUID format');
|
||||
});
|
||||
|
||||
ifit(process.platform === 'win32')('accepts a valid guid', () => {
|
||||
ifit(process.platform !== 'linux')('accepts a valid guid', () => {
|
||||
expect(() => {
|
||||
tray = new Tray(nativeImage.createEmpty(), '0019A433-3526-48BA-A66C-676742C0FEFB');
|
||||
}).to.not.throw();
|
||||
|
||||
Reference in New Issue
Block a user