spec: Fix exception when refreshing test window
This commit is contained in:
parent
39bd2bee8e
commit
fbfae70803
1 changed files with 2 additions and 2 deletions
|
@ -63,12 +63,12 @@ describe('webContents module', function () {
|
|||
const specWebContents = remote.getCurrentWebContents()
|
||||
assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId())
|
||||
|
||||
specWebContents.on('devtools-opened', function () {
|
||||
specWebContents.once('devtools-opened', function () {
|
||||
assert.equal(specWebContents.devToolsWebContents.getId(), webContents.getFocusedWebContents().getId())
|
||||
specWebContents.closeDevTools()
|
||||
})
|
||||
|
||||
specWebContents.on('devtools-closed', function () {
|
||||
specWebContents.once('devtools-closed', function () {
|
||||
assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId())
|
||||
done()
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue