fix: enable autoHideMenuBar
tests on Linux and Windows (#46830)
* fix: enable autoHideMenuBar tests Co-authored-by: Charles Kerr <charles@charleskerr.com> * docs: mark autoHideMenuBar as supported on Linux, Windows Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
34adb976b6
commit
698bff0efa
4 changed files with 7 additions and 7 deletions
|
@ -2361,10 +2361,10 @@ describe('BrowserWindow module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('autoHideMenuBar state', () => {
|
||||
ifdescribe(process.platform !== 'darwin')('autoHideMenuBar state', () => {
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
it('for properties', () => {
|
||||
describe('for properties', () => {
|
||||
it('can be set with autoHideMenuBar constructor option', () => {
|
||||
const w = new BrowserWindow({ show: false, autoHideMenuBar: true });
|
||||
expect(w.autoHideMenuBar).to.be.true('autoHideMenuBar');
|
||||
|
@ -2380,7 +2380,7 @@ describe('BrowserWindow module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('for functions', () => {
|
||||
describe('for functions', () => {
|
||||
it('can be set with autoHideMenuBar constructor option', () => {
|
||||
const w = new BrowserWindow({ show: false, autoHideMenuBar: true });
|
||||
expect(w.isMenuBarAutoHide()).to.be.true('autoHideMenuBar');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue