fix: webContents return type incorrect (#38026)
* fix: webContents type incorrect * fix: ci failed * fix: ci failed 2
This commit is contained in:
parent
b626be5e33
commit
141f65b291
3 changed files with 8 additions and 8 deletions
|
@ -1945,7 +1945,7 @@ describe('chromium features', () => {
|
|||
await w1.loadFile(path.join(__dirname, 'fixtures', 'blank.html'));
|
||||
await w2.loadFile(path.join(__dirname, 'fixtures', 'blank.html'));
|
||||
await w3.loadFile(path.join(__dirname, 'fixtures', 'blank.html'));
|
||||
expect(webContents.getFocusedWebContents().id).to.equal(w2.webContents.id);
|
||||
expect(webContents.getFocusedWebContents()?.id).to.equal(w2.webContents.id);
|
||||
let focus = false;
|
||||
focus = await w1.webContents.executeJavaScript(
|
||||
'document.hasFocus()'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue