mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
Non-resizable windows should only maximizable on Mac
This commit is contained in:
@@ -711,7 +711,10 @@ describe('browser-window module', function () {
|
||||
w.destroy()
|
||||
w = new BrowserWindow({show: false, resizable: false})
|
||||
assert.equal(w.isResizable(), false)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
}
|
||||
})
|
||||
|
||||
it('can be changed with setResizable method', function () {
|
||||
|
||||
Reference in New Issue
Block a user