fix: enable autoHideMenuBar tests on Linux and Windows (#46829)

* 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:
trop[bot] 2025-04-28 13:39:59 -05:00 committed by GitHub
commit d224d03e31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -2360,10 +2360,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');
@ -2379,7 +2379,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');