refactor: rename TopLevelWindow to BaseWindow (#24305)

This commit is contained in:
Cheng Zhao 2020-06-29 16:06:20 +09:00 committed by GitHub
parent 80e5007c47
commit ef3579eae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 433 additions and 451 deletions

View file

@ -4,14 +4,14 @@ import * as path from 'path';
import { emittedOnce } from './events-helpers';
import { closeWindow } from './window-helpers';
import { TopLevelWindow, WebContentsView } from 'electron/main';
import { BaseWindow, WebContentsView } from 'electron/main';
describe('WebContentsView', () => {
let w: TopLevelWindow;
afterEach(() => closeWindow(w as any).then(() => { w = null as unknown as TopLevelWindow; }));
let w: BaseWindow;
afterEach(() => closeWindow(w as any).then(() => { w = null as unknown as BaseWindow; }));
it('can be used as content view', () => {
w = new TopLevelWindow({ show: false });
w = new BaseWindow({ show: false });
w.setContentView(new WebContentsView({}));
});