test: move some fixtures from spec/ to spec-main/ (#21403)
This commit is contained in:
parent
8a92b65fd3
commit
768a6ace1b
44 changed files with 27 additions and 32 deletions
|
@ -3603,7 +3603,7 @@ describe('BrowserWindow module', () => {
|
|||
})
|
||||
|
||||
it('throws errors for invalid manifest.json files', () => {
|
||||
const badManifestExtensionPath = path.join(fixtures, 'devtools-extensions', 'bad-manifest')
|
||||
const badManifestExtensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', 'bad-manifest')
|
||||
expect(() => {
|
||||
BrowserWindow.addDevToolsExtension(badManifestExtensionPath)
|
||||
}).to.throw(/Unexpected token }/)
|
||||
|
@ -3614,7 +3614,7 @@ describe('BrowserWindow module', () => {
|
|||
const extensionName = 'foo'
|
||||
|
||||
before(() => {
|
||||
const extensionPath = path.join(fixtures, 'devtools-extensions', 'foo')
|
||||
const extensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', 'foo')
|
||||
BrowserWindow.addDevToolsExtension(extensionPath)
|
||||
expect(BrowserWindow.getDevToolsExtensions()).to.have.property(extensionName)
|
||||
})
|
||||
|
@ -3707,7 +3707,7 @@ describe('BrowserWindow module', () => {
|
|||
}
|
||||
})
|
||||
|
||||
const extensionPath = path.join(fixtures, 'devtools-extensions', 'foo')
|
||||
const extensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', 'foo')
|
||||
BrowserWindow.addDevToolsExtension(extensionPath)
|
||||
try {
|
||||
showLastDevToolsPanel(w)
|
||||
|
@ -3728,7 +3728,7 @@ describe('BrowserWindow module', () => {
|
|||
|
||||
it('serializes the registered extensions on quit', () => {
|
||||
const extensionName = 'foo'
|
||||
const extensionPath = path.join(fixtures, 'devtools-extensions', extensionName)
|
||||
const extensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', extensionName)
|
||||
const serializedPath = path.join(app.getPath('userData'), 'DevTools Extensions')
|
||||
|
||||
BrowserWindow.addDevToolsExtension(extensionPath)
|
||||
|
@ -3749,7 +3749,7 @@ describe('BrowserWindow module', () => {
|
|||
|
||||
it('throws errors for invalid manifest.json files', () => {
|
||||
expect(() => {
|
||||
BrowserWindow.addExtension(path.join(fixtures, 'devtools-extensions', 'bad-manifest'))
|
||||
BrowserWindow.addExtension(path.join(__dirname, 'fixtures', 'devtools-extensions', 'bad-manifest'))
|
||||
}).to.throw('Unexpected token }')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue