Skip to content

Commit

Permalink
fix: about:blank focus behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed May 19, 2021
1 parent 5c9a587 commit 2fe95f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec-main/api-web-contents-spec.ts
Expand Up @@ -419,7 +419,7 @@ describe('webContents module', () => {
const testFn = (process.platform === 'win32' && process.arch === 'arm64' ? it.skip : it);
testFn('returns the focused web contents', async () => {
const w = new BrowserWindow({ show: true });
await w.loadURL('about:blank');
await w.loadFile(path.join(__dirname, 'fixtures', 'blank.html'));
expect(webContents.getFocusedWebContents().id).to.equal(w.webContents.id);

const devToolsOpened = emittedOnce(w.webContents, 'devtools-opened');
Expand Down

0 comments on commit 2fe95f7

Please sign in to comment.