fix: crash when restoring minimized hidden window (#21813)

This commit is contained in:
Cheng Zhao 2020-01-18 04:29:02 +09:00 committed by Robo
parent bf6e4b1247
commit 42d8933d66
3 changed files with 29 additions and 0 deletions

View file

@ -2858,6 +2858,13 @@ describe('BrowserWindow module', () => {
w.restore()
expectBoundsEqual(w.getSize(), initialSize)
})
it('does not crash when restoring hidden minimized window', () => {
const w = new BrowserWindow({})
w.minimize()
w.hide()
w.show()
})
})
describe('BrowserWindow.unmaximize()', () => {