Emit event after listener is registered
This commit is contained in:
parent
1d84d83fd4
commit
54232ee21a
1 changed files with 2 additions and 2 deletions
|
@ -1086,13 +1086,13 @@ describe('<webview> tag', function () {
|
|||
assert.equal(visibilityState, 'hidden')
|
||||
assert.equal(hidden, true)
|
||||
|
||||
w.webContents.emit('-window-visibility-change', 'visible')
|
||||
|
||||
ipcMain.once('pong', function (event, visibilityState, hidden) {
|
||||
assert.equal(visibilityState, 'visible')
|
||||
assert.equal(hidden, false)
|
||||
done()
|
||||
})
|
||||
|
||||
w.webContents.emit('-window-visibility-change', 'visible')
|
||||
})
|
||||
|
||||
w.loadURL('file://' + fixtures + '/pages/webview-visibilitychange.html')
|
||||
|
|
Loading…
Add table
Reference in a new issue