test: move some fixtures from spec/ to spec-main/ (#21403)

This commit is contained in:
Jeremy Apthorp 2020-01-09 11:50:56 -08:00 committed by GitHub
parent 8a92b65fd3
commit 768a6ace1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 27 additions and 32 deletions

View file

@ -82,7 +82,7 @@ describe('protocol module', () => {
// Note that we need to do navigation every time after a protocol is
// registered or unregistered, otherwise the new protocol won't be
// recognized by current page when NetworkService is used.
await contents.loadFile(path.join(fixturesPath, 'pages', 'jquery.html'))
await contents.loadFile(path.join(__dirname, 'fixtures', 'pages', 'jquery.html'))
return contents.executeJavaScript(`ajax("${url}", ${JSON.stringify(options)})`)
}