describe('asar protocol', function () {
var url = require('url')
+ var w = null
+
+ afterEach(function () {
+ return closeWindow(w).then(function () { w = null })
+ })
it('can request a file in package', function (done) {
var p = path.resolve(fixtures, 'asar', 'a.asar', 'file1')
it('sets __dirname correctly', function (done) {
after(function () {
ipcMain.removeAllListeners('dirname')
- return closeWindow(w).then(function () { w = null })
})
- var w = new BrowserWindow({
+ w = new BrowserWindow({
show: false,
width: 400,
height: 400
it('loads script tag in html', function (done) {
after(function () {
ipcMain.removeAllListeners('ping')
- return closeWindow(w).then(function () { w = null })
})
- var w = new BrowserWindow({
+ w = new BrowserWindow({
show: false,
width: 400,
height: 400
after(function () {
ipcMain.removeAllListeners('asar-video')
- return closeWindow(w).then(function () { w = null })
})
- var w = new BrowserWindow({
+ w = new BrowserWindow({
show: false,
width: 400,
height: 400