test: cleanup RenderFrame lifespan tests (#47795)
* test: cleanup RenderFrame lifespan tests Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * test: disable navigator.serial tests on arm64 mac debug the hang test: disable navigator.bluetooth on arm64 mac Revert "test: disable navigator.bluetooth on arm64 mac" This reverts commit 4b53a8485a5ff391832c7da93d859f1aa8722e70. Revert "debug the hang" This reverts commit 00338f0d49a7918224822087b4510fa9db0686c3. Revert "test: disable navigator.serial tests on arm64 mac" This reverts commit fb515ce447a9d42185e84b17b460e4fb6d1bf71d. Reapply "test: disable navigator.serial tests on arm64 mac" This reverts commit 0e5608108ffebbe8b8b27af9ea06aadae2ea85dd. Reapply "test: disable navigator.bluetooth on arm64 mac" This reverts commit f4c7d3fc0624a22421cba5d3d75df8c5d4367eea. fixup Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * test: add waitUntil for flaky test Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
ee8942dcbf
commit
28d8ed037c
2 changed files with 6 additions and 3 deletions
|
@ -313,6 +313,7 @@ describe('webFrameMain module', () => {
|
|||
beforeEach(async () => {
|
||||
w = new BrowserWindow({ show: false });
|
||||
});
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
// TODO(jkleinsc) fix this flaky test on linux
|
||||
ifit(process.platform !== 'linux')('throws upon accessing properties when disposed', async () => {
|
||||
|
@ -373,7 +374,9 @@ describe('webFrameMain module', () => {
|
|||
await w.webContents.loadURL(server.crossOriginUrl);
|
||||
// senderFrame now points to a disposed RenderFrameHost. It should
|
||||
// be null when attempting to access the lazily evaluated property.
|
||||
expect(event.senderFrame).to.be.null();
|
||||
waitUntil(() => {
|
||||
return event.senderFrame === null;
|
||||
});
|
||||
});
|
||||
|
||||
it('is detached when unload handler sends IPC', async () => {
|
||||
|
|
|
@ -3089,7 +3089,7 @@ describe('iframe using HTML fullscreen API while window is OS-fullscreened', ()
|
|||
});
|
||||
});
|
||||
|
||||
describe('navigator.serial', () => {
|
||||
ifdescribe(process.platform !== 'darwin' || process.arch !== 'arm64')('navigator.serial', () => {
|
||||
let w: BrowserWindow;
|
||||
before(async () => {
|
||||
w = new BrowserWindow({
|
||||
|
@ -3621,7 +3621,7 @@ ifdescribe((process.platform !== 'linux' || app.isUnityRunning()))('navigator.se
|
|||
});
|
||||
});
|
||||
|
||||
describe('navigator.bluetooth', () => {
|
||||
ifdescribe(process.platform !== 'darwin' || process.arch !== 'arm64')('navigator.bluetooth', () => {
|
||||
let w: BrowserWindow;
|
||||
before(async () => {
|
||||
w = new BrowserWindow({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue