test: re-enable multi-window fullscreen test (#38119)
This commit is contained in:
parent
9d525f9861
commit
05faabe9e8
1 changed files with 2 additions and 3 deletions
|
@ -5536,14 +5536,13 @@ describe('BrowserWindow module', () => {
|
||||||
expect(w.isFullScreen()).to.be.false('isFullScreen');
|
expect(w.isFullScreen()).to.be.false('isFullScreen');
|
||||||
});
|
});
|
||||||
|
|
||||||
// FIXME: https://github.com/electron/electron/issues/30140
|
it('multiple windows inherit correct fullscreen state', async () => {
|
||||||
xit('multiple windows inherit correct fullscreen state', async () => {
|
|
||||||
const w = new BrowserWindow();
|
const w = new BrowserWindow();
|
||||||
const enterFullScreen = once(w, 'enter-full-screen');
|
const enterFullScreen = once(w, 'enter-full-screen');
|
||||||
w.setFullScreen(true);
|
w.setFullScreen(true);
|
||||||
await enterFullScreen;
|
await enterFullScreen;
|
||||||
expect(w.isFullScreen()).to.be.true('isFullScreen');
|
expect(w.isFullScreen()).to.be.true('isFullScreen');
|
||||||
await setTimeout();
|
await setTimeout(1000);
|
||||||
const w2 = new BrowserWindow({ show: false });
|
const w2 = new BrowserWindow({ show: false });
|
||||||
const enterFullScreen2 = once(w2, 'enter-full-screen');
|
const enterFullScreen2 = once(w2, 'enter-full-screen');
|
||||||
w2.show();
|
w2.show();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue