From 6909f4bba574945c7f27a05ba1c3a4fedd44c90a Mon Sep 17 00:00:00 2001 From: Samuel Maddock Date: Sat, 22 May 2021 22:14:21 -0400 Subject: [PATCH] fix: load file path --- spec-main/api-web-contents-spec.ts | 2 +- spec-main/fixtures/sub-frames/frame-with-frame.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec-main/api-web-contents-spec.ts b/spec-main/api-web-contents-spec.ts index d1055e9ea0860..9a6481f2f27d1 100644 --- a/spec-main/api-web-contents-spec.ts +++ b/spec-main/api-web-contents-spec.ts @@ -2074,7 +2074,7 @@ describe('webContents module', () => { } }); }); - w.webContents.loadURL(path.join(mainFixturesPath, 'sub-frames/frame-with-frame.html')); + w.webContents.loadFile(path.join(mainFixturesPath, 'sub-frames/frame-with-frame.html')); await promise; }); }); diff --git a/spec-main/fixtures/sub-frames/frame-with-frame.html b/spec-main/fixtures/sub-frames/frame-with-frame.html index e045b57522c81..3f46a8adab9d3 100644 --- a/spec-main/fixtures/sub-frames/frame-with-frame.html +++ b/spec-main/fixtures/sub-frames/frame-with-frame.html @@ -8,6 +8,6 @@ This is a frame, is has one child - + \ No newline at end of file