chore: remove unused getWebPreferences method (#30160)
This commit is contained in:
parent
a3298424b3
commit
612361c4da
3 changed files with 0 additions and 20 deletions
|
@ -503,16 +503,6 @@ describe('webContents module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('getWebPreferences() API', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('should not crash when called for devTools webContents', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
w.webContents.openDevTools();
|
||||
await emittedOnce(w.webContents, 'devtools-opened');
|
||||
expect(w.webContents.devToolsWebContents!.getWebPreferences()).to.be.null();
|
||||
});
|
||||
});
|
||||
|
||||
describe('openDevTools() API', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('can show window with activation', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue