Remove will-navigate spec
This commit is contained in:
parent
25ac23ab17
commit
5ae80d541b
1 changed files with 0 additions and 19 deletions
|
@ -98,25 +98,6 @@ describe('webContents module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('will-navigate event', function () {
|
||||
it('can be prevented', (done) => {
|
||||
const targetURL = 'file://' + path.join(__dirname, 'fixtures', 'pages', 'location-change.html')
|
||||
w.loadURL(targetURL)
|
||||
w.webContents.once('did-finish-load', () => {
|
||||
|
||||
w.webContents.on('will-navigate', (event, url) => {
|
||||
assert.ok(url, targetURL)
|
||||
})
|
||||
|
||||
setTimeout(done, 5000)
|
||||
|
||||
w.webContents.on('did-navigate', (event, url) => {
|
||||
assert.ok(url, targetURL)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('before-input-event event', () => {
|
||||
it('can prevent document keyboard events', (done) => {
|
||||
w.loadURL('file://' + path.join(__dirname, 'fixtures', 'pages', 'key-events.html'))
|
||||
|
|
Loading…
Reference in a new issue