Add failing spec for unwanted save dialog
This commit is contained in:
parent
e14e92147d
commit
1de8a0dcf9
1 changed files with 11 additions and 0 deletions
|
@ -319,6 +319,17 @@ describe('session module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('when a save path is specified and the URL is unavailable', function () {
|
||||||
|
it('does not display a save dialog and reports the done state as interrupted', function (done) {
|
||||||
|
ipcRenderer.sendSync('set-download-option', false, false)
|
||||||
|
ipcRenderer.once('download-done', (event, state) => {
|
||||||
|
assert.equal(state, 'interrupted')
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
w.webContents.downloadURL('file://' + __dirname)
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('ses.protocol', function () {
|
describe('ses.protocol', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue