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:
parent
52a7c752e6
commit
d224d03e31
4 changed files with 7 additions and 7 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue