run the new test only on windows

This commit is contained in:
Heilig Benedek 2017-11-23 21:24:50 +01:00
parent 710ca230f3
commit 62594780e0

View file

@ -2178,6 +2178,11 @@ describe('BrowserWindow module', () => {
w.setFullScreenable(false)
assert.equal(w.isMaximizable(), true)
})
})
describe('maximizable state (Windows only)', () => {
// Only implemented on windows.
if (process.platform !== 'win32') return
it('is set to false when resizable state is set to false', () => {
w.setResizable(false)