🍎 Fix an issue where alwaysOnTop window disappears when restored from the application icon

This commit is contained in:
Shubham 2017-06-07 12:28:50 -04:00
parent dfab1043d9
commit f001377493
2 changed files with 26 additions and 0 deletions

View file

@ -620,6 +620,22 @@ describe('BrowserWindow module', function () {
})
})
describe.only('BrowserWindow.alwaysOnTop() resets level on minimize', function () {
if (process.platform !== 'darwin') {
return
}
it('resets the windows level on minimize', function () {
assert.equal(w.isAlwaysOnTop(), false)
w.setAlwaysOnTop(true, 'screen-saver')
assert.equal(w.isAlwaysOnTop(), true)
w.minimize()
assert.equal(w.isAlwaysOnTop(), false)
w.restore()
assert.equal(w.isAlwaysOnTop(), true)
})
})
describe('BrowserWindow.setAutoHideCursor(autoHide)', () => {
if (process.platform !== 'darwin') {
it('is not available on non-macOS platforms', () => {