mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Update window via listener when escape item changes
This commit is contained in:
@@ -20,6 +20,13 @@ describe('TouchBar module', function () {
|
||||
}, /Each item must be an instance of TouchBarItem/)
|
||||
})
|
||||
|
||||
it('throws an error when an invalid escape item is set', function () {
|
||||
assert.throws(() => {
|
||||
const touchBar = new TouchBar([])
|
||||
touchBar.setEscapeItem('esc')
|
||||
}, /Escape item must be an instance of TouchBarItem/)
|
||||
})
|
||||
|
||||
describe('BrowserWindow behavior', function () {
|
||||
let window
|
||||
|
||||
|
||||
Reference in New Issue
Block a user