refactor: use loadFile when appropriate in tests (#14422)
This commit is contained in:
parent
e8782f2c2d
commit
c63014c256
13 changed files with 115 additions and 137 deletions
|
@ -147,7 +147,7 @@ describe('webFrame module', function () {
|
|||
|
||||
it('calls a spellcheck provider', async () => {
|
||||
w = new BrowserWindow({show: false})
|
||||
w.loadURL(`file://${fixtures}/pages/webframe-spell-check.html`)
|
||||
w.loadFile(path.join(fixtures, 'pages', 'webframe-spell-check.html'))
|
||||
await emittedOnce(w.webContents, 'did-finish-load')
|
||||
|
||||
const spellCheckerFeedback = emittedOnce(ipcMain, 'spec-spell-check')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue