Merge pull request #8487 from leethomas/feature/osx-relative-window-levels
Feature/macOS relative window levels
This commit is contained in:
commit
dc1c11a841
8 changed files with 49 additions and 8 deletions
|
@ -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)', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue