Merge pull request #8487 from leethomas/feature/osx-relative-window-levels

Feature/macOS relative window levels
This commit is contained in:
Kevin Sawicki 2017-01-30 15:34:24 -08:00 committed by GitHub
commit dc1c11a841
8 changed files with 49 additions and 8 deletions

View file

@ -524,6 +524,18 @@ describe('BrowserWindow module', function () {
w.setAlwaysOnTop(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, '', -2147483644)
})
assert.throws(function () {
w.setAlwaysOnTop(true, '', 2147483632)
})
})
})
describe('BrowserWindow.setAutoHideCursor(autoHide)', () => {