Merge pull request #8092 from poiru/setcursorautohide

Add BrowserWindow.setCursorAutoHide
This commit is contained in:
Kevin Sawicki 2016-11-29 13:36:58 -08:00 committed by GitHub
commit df179ed28d
8 changed files with 45 additions and 0 deletions

View file

@ -506,6 +506,23 @@ describe('browser-window module', function () {
})
})
describe('BrowserWindow.setAutoHideCursor(autoHide)', () => {
if (process.platform !== 'darwin') {
it('is not available on non-macOS platforms', () => {
assert.ok(!w.setAutoHideCursor)
})
return
}
it('allows changing cursor auto-hiding', () => {
assert.doesNotThrow(() => {
w.setAutoHideCursor(false)
w.setAutoHideCursor(true)
})
})
})
describe('BrowserWindow.setVibrancy(type)', function () {
it('allows setting, changing, and removing the vibrancy', function () {
assert.doesNotThrow(function () {