mirror of
https://github.com/electron/electron.git
synced 2026-02-08 22:25:14 -05:00
chore: convert rpc-server to ts (#24271)
This commit is contained in:
@@ -2213,7 +2213,7 @@ describe('BrowserWindow module', () => {
|
||||
emittedOnce(app, 'web-contents-created'),
|
||||
emittedOnce(ipcMain, 'answer')
|
||||
]);
|
||||
const webPreferences = (childWebContents as any).getLastWebPreferences();
|
||||
const webPreferences = childWebContents.getLastWebPreferences();
|
||||
expect(webPreferences.foo).to.equal('bar');
|
||||
});
|
||||
|
||||
@@ -2530,7 +2530,7 @@ describe('BrowserWindow module', () => {
|
||||
emittedOnce(app, 'web-contents-created'),
|
||||
emittedOnce(ipcMain, 'answer')
|
||||
]);
|
||||
const webPreferences = (childWebContents as any).getLastWebPreferences();
|
||||
const webPreferences = childWebContents.getLastWebPreferences();
|
||||
expect(webPreferences.foo).to.equal('bar');
|
||||
});
|
||||
|
||||
|
||||
@@ -598,7 +598,7 @@ describe('chromium features', () => {
|
||||
contents.sendInputEvent({ type: 'mouseDown', clickCount: 1, x: 1, y: 1 });
|
||||
contents.sendInputEvent({ type: 'mouseUp', clickCount: 1, x: 1, y: 1 });
|
||||
const [, window] = await emittedOnce(app, 'browser-window-created');
|
||||
const preferences = (window.webContents as any).getLastWebPreferences();
|
||||
const preferences = window.webContents.getLastWebPreferences();
|
||||
expect(preferences.javascript).to.be.false();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user