🍎 Fix full screen when resizable is set to true
This commit is contained in:
parent
3abeb6e2bc
commit
1b8963ff6e
2 changed files with 24 additions and 0 deletions
|
@ -2000,6 +2000,25 @@ describe('BrowserWindow module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('fullscreen state with resizable set', function () {
|
||||
// Only implemented on macOS.
|
||||
if (process.platform !== 'darwin') return
|
||||
|
||||
it('resizable flag should be set to true and restored', function (done) {
|
||||
w.destroy()
|
||||
w = new BrowserWindow({ resizable: false })
|
||||
w.once('enter-full-screen', () => {
|
||||
assert.equal(w.isResizable(), true)
|
||||
w.setFullScreen(false)
|
||||
})
|
||||
w.once('leave-full-screen', () => {
|
||||
assert.equal(w.isResizable(), false)
|
||||
done()
|
||||
})
|
||||
w.setFullScreen(true)
|
||||
})
|
||||
})
|
||||
|
||||
describe('fullscreen state', function () {
|
||||
// Only implemented on macOS.
|
||||
if (process.platform !== 'darwin') return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue