refactor: make autoHideMenuBar a property on BrowserWindows (#18555)

This commit is contained in:
Shelley Vohr 2019-06-03 09:09:47 -07:00 committed by GitHub
parent 4cb6be453a
commit 52c76d737a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 5 deletions

View file

@ -513,6 +513,16 @@ describe('BrowserWindow module', () => {
})
})
describe('BrowserWindow autoHideMenuBar property', () => {
it('has an autoHideMenuBar property', () => {
expect(w).to.have.a.property('autoHideMenuBar')
// TODO(codebytere): remove when propertyification is complete
expect(w.setAutoHideMenuBar).to.be.a('function')
expect(w.isMenuBarAutoHide).to.be.a('function')
})
})
describe('BrowserWindow.moveTop()', () => {
it('should not steal focus', async () => {
const posDelta = 50