refactor: create IPC_MESSAGES enum for IPC message channels (#25694)
This commit is contained in:
parent
8dfb1cf78f
commit
2c68bad631
26 changed files with 225 additions and 126 deletions
|
@ -790,7 +790,7 @@ describe('chromium features', () => {
|
|||
});
|
||||
expect(await w.webContents.executeJavaScript(`(${function () {
|
||||
const { ipc } = process._linkedBinding('electron_renderer_ipc');
|
||||
return ipc.sendSync(true, 'ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_OPEN', ['', '', ''])[0];
|
||||
return ipc.sendSync(true, 'GUEST_WINDOW_MANAGER_WINDOW_OPEN', ['', '', ''])[0];
|
||||
}})()`)).to.be.null();
|
||||
const exception = await uncaughtException;
|
||||
expect(exception.message).to.match(/denied: expected native window\.open/);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue