add failing spec
This commit is contained in:
parent
076d957ab9
commit
7e6cba1482
2 changed files with 30 additions and 0 deletions
|
@ -840,6 +840,36 @@ describe('asar package', function () {
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('loads video tag in html', function (done) {
|
||||||
|
this.timeout(14000)
|
||||||
|
|
||||||
|
after(function () {
|
||||||
|
ipcMain.removeAllListeners('asar-video')
|
||||||
|
return closeWindow(w).then(function () { w = null })
|
||||||
|
})
|
||||||
|
|
||||||
|
var w = new BrowserWindow({
|
||||||
|
show: false,
|
||||||
|
width: 400,
|
||||||
|
height: 400
|
||||||
|
})
|
||||||
|
var p = path.resolve(fixtures, 'asar', 'video.asar', 'index.html')
|
||||||
|
var u = url.format({
|
||||||
|
protocol: 'file',
|
||||||
|
slashed: true,
|
||||||
|
pathname: p
|
||||||
|
})
|
||||||
|
w.loadURL(u)
|
||||||
|
ipcMain.on('asar-video', function (event, message, error) {
|
||||||
|
if (message === 'ended') {
|
||||||
|
assert(!error)
|
||||||
|
done()
|
||||||
|
} else if (message === 'error') {
|
||||||
|
done(error)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('original-fs module', function () {
|
describe('original-fs module', function () {
|
||||||
|
|
BIN
spec/fixtures/asar/video.asar
vendored
Normal file
BIN
spec/fixtures/asar/video.asar
vendored
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue