Merge pull request #9572 from shubham2892/api-height-menubar-macos

API height menubar macos
This commit is contained in:
Kevin Sawicki 2017-06-05 10:35:16 -07:00 committed by GitHub
commit 9a362eed53
6 changed files with 41 additions and 0 deletions

View file

@ -18,4 +18,15 @@ describe('screen module', function () {
assert(display.size.height > 0)
})
})
describe('screen.getMenuBarHeight()', function () {
if (process.platform !== 'darwin') {
return
}
it('returns an integer', function () {
var screenHeight = screen.getMenuBarHeight()
assert.equal(typeof screenHeight, 'number')
})
})
})