refactor: cleanup WebFrameMain + improve tests (#27455)
This commit is contained in:
parent
ddf3ef0a5f
commit
bde714c1c6
3 changed files with 28 additions and 30 deletions
|
@ -126,11 +126,12 @@ describe('webFrameMain module', () => {
|
|||
const w = new BrowserWindow({ show: false, webPreferences: { contextIsolation: true } });
|
||||
await w.loadFile(path.join(subframesPath, 'frame.html'));
|
||||
const webFrame = w.webContents.mainFrame;
|
||||
expect(webFrame).to.haveOwnProperty('frameTreeNodeId');
|
||||
expect(webFrame).to.haveOwnProperty('name');
|
||||
expect(webFrame).to.haveOwnProperty('osProcessId');
|
||||
expect(webFrame).to.haveOwnProperty('processId');
|
||||
expect(webFrame).to.haveOwnProperty('routingId');
|
||||
expect(webFrame).to.have.ownProperty('url').that.is.a('string');
|
||||
expect(webFrame).to.have.ownProperty('frameTreeNodeId').that.is.a('number');
|
||||
expect(webFrame).to.have.ownProperty('name').that.is.a('string');
|
||||
expect(webFrame).to.have.ownProperty('osProcessId').that.is.a('number');
|
||||
expect(webFrame).to.have.ownProperty('processId').that.is.a('number');
|
||||
expect(webFrame).to.have.ownProperty('routingId').that.is.a('number');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue