Skip to content

Commit

Permalink
fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak authored and ckerr committed Sep 15, 2022
1 parent 5cc70df commit c4bdfb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec-main/api-web-frame-main-spec.ts
Expand Up @@ -130,7 +130,7 @@ describe('webFrameMain module', () => {

it('should be file:// for file frames', async () => {
const w = new BrowserWindow({ show: false });
await w.loadFile(path.join(fixtures, 'pages', 'blank.html'));
await w.loadFile(path.join(fixtures, 'blank.html'));
expect(w.webContents.mainFrame.origin).to.equal('file://');
});

Expand All @@ -144,7 +144,7 @@ describe('webFrameMain module', () => {

it('should show parent origin when child page is about:blank', async () => {
const w = new BrowserWindow({ show: false });
await w.loadFile(path.join(fixtures, 'pages', 'blank.html'));
await w.loadFile(path.join(fixtures, 'blank.html'));
const webContentsCreated: Promise<[unknown, WebContents]> = emittedOnce(app, 'web-contents-created') as any;
expect(w.webContents.mainFrame.origin).to.equal('file://');
await w.webContents.executeJavaScript('window.open("", null, "show=false"), null');
Expand Down

0 comments on commit c4bdfb5

Please sign in to comment.