add failing spec

This commit is contained in:
deepak1556 2016-09-08 08:31:35 +05:30
parent 076d957ab9
commit 7e6cba1482
2 changed files with 30 additions and 0 deletions
spec

View file

@ -840,6 +840,36 @@ describe('asar package', function () {
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 () {

BIN
spec/fixtures/asar/video.asar vendored Normal file

Binary file not shown.