Call callback asynchronously to match original issue

This commit is contained in:
Kevin Sawicki 2016-10-28 14:53:02 -07:00
parent 078c924760
commit 3f8e173452

View file

@ -959,7 +959,9 @@ describe('<webview> tag', function () {
session.fromPartition(webview.partition).setPermissionRequestHandler(function (webContents, permission, callback) {
if (webContents.getId() === webview.getId()) {
assert.equal(permission, 'notifications')
callback(true)
setTimeout(function () {
callback(true)
}, 10)
}
})
document.body.appendChild(webview)