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:
trop[bot] 2025-04-28 13:20:07 -05:00 committed by GitHub
parent 34adb976b6
commit 698bff0efa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View file

@ -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');