chore: remove unused getWebPreferences method (#30160)

This commit is contained in:
Jeremy Rose 2021-07-19 09:29:23 -07:00 committed by GitHub
parent a3298424b3
commit 612361c4da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 20 deletions

View file

@ -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 () => {