spec to ensure an error is thrown when relativeLevel is set out of bounds
This commit is contained in:
parent
1f5518b91e
commit
1234b61fa6
1 changed files with 12 additions and 0 deletions
|
@ -513,6 +513,18 @@ describe('BrowserWindow module', function () {
|
||||||
w.setAlwaysOnTop(true)
|
w.setAlwaysOnTop(true)
|
||||||
assert.equal(w.isAlwaysOnTop(), true)
|
assert.equal(w.isAlwaysOnTop(), true)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('raises an error when relativeLevel is out of bounds', function() {
|
||||||
|
if (process.platform !== 'darwin') return;
|
||||||
|
|
||||||
|
assert.throws(function() {
|
||||||
|
w.setAlwaysOnTop(true, '', -1)
|
||||||
|
})
|
||||||
|
|
||||||
|
assert.throws(function() {
|
||||||
|
w.setAlwaysOnTop(true, '', 2147483632)
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('BrowserWindow.setAutoHideCursor(autoHide)', () => {
|
describe('BrowserWindow.setAutoHideCursor(autoHide)', () => {
|
||||||
|
|
Loading…
Reference in a new issue