✅ Remove already tested part
This commit is contained in:
parent
03ec155ecb
commit
2231673b03
1 changed files with 1 additions and 38 deletions
|
@ -1995,7 +1995,7 @@ describe('BrowserWindow module', function () {
|
||||||
clearTimeout(showPanelTimeoutId)
|
clearTimeout(showPanelTimeoutId)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('BrowserWindow.addDevToolsExtension', function () {
|
describe.only('BrowserWindow.addDevToolsExtension', function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
BrowserWindow.removeDevToolsExtension('foo')
|
BrowserWindow.removeDevToolsExtension('foo')
|
||||||
assert.equal(BrowserWindow.getDevToolsExtensions().hasOwnProperty('foo'), false)
|
assert.equal(BrowserWindow.getDevToolsExtensions().hasOwnProperty('foo'), false)
|
||||||
|
@ -2124,43 +2124,6 @@ describe('BrowserWindow module', function () {
|
||||||
BrowserWindow.addExtension(path.join(__dirname, 'fixtures', 'devtools-extensions', 'bad-manifest'))
|
BrowserWindow.addExtension(path.join(__dirname, 'fixtures', 'devtools-extensions', 'bad-manifest'))
|
||||||
}, /Unexpected token }/)
|
}, /Unexpected token }/)
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('when the devtools is docked', function () {
|
|
||||||
it('creates the extension', function (done) {
|
|
||||||
w.webContents.openDevTools({mode: 'bottom'})
|
|
||||||
|
|
||||||
ipcMain.once('answer', function (event, message) {
|
|
||||||
assert.equal(message.runtimeId, 'foo')
|
|
||||||
assert.equal(message.tabId, w.webContents.id)
|
|
||||||
assert.equal(message.i18nString, 'foo - bar (baz)')
|
|
||||||
assert.deepEqual(message.storageItems, {
|
|
||||||
local: {
|
|
||||||
set: {hello: 'world', world: 'hello'},
|
|
||||||
remove: {world: 'hello'},
|
|
||||||
clear: {}
|
|
||||||
},
|
|
||||||
sync: {
|
|
||||||
set: {foo: 'bar', bar: 'foo'},
|
|
||||||
remove: {foo: 'bar'},
|
|
||||||
clear: {}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
done()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('when the devtools is undocked', function () {
|
|
||||||
it('creates the extension', function (done) {
|
|
||||||
w.webContents.openDevTools({mode: 'undocked'})
|
|
||||||
|
|
||||||
ipcMain.once('answer', function (event, message, extensionId) {
|
|
||||||
assert.equal(message.runtimeId, 'foo')
|
|
||||||
assert.equal(message.tabId, w.webContents.id)
|
|
||||||
done()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue