spec: Test loading script tag in html
This commit is contained in:
parent
8b712bac8d
commit
24b5faf8df
2 changed files with 13 additions and 0 deletions
|
@ -392,6 +392,19 @@ describe 'asar package', ->
|
|||
assert.equal dirname, path.dirname(p)
|
||||
done()
|
||||
|
||||
it 'loads script tag in html', (done) ->
|
||||
after ->
|
||||
w.destroy()
|
||||
ipc.removeAllListeners 'ping'
|
||||
|
||||
w = new BrowserWindow(show: false, width: 400, height: 400)
|
||||
p = path.resolve fixtures, 'asar', 'script.asar', 'index.html'
|
||||
u = url.format protocol: 'file', slashed: true, pathname: p
|
||||
w.loadUrl u
|
||||
ipc.once 'ping', (event, message) ->
|
||||
assert.equal message, 'pong'
|
||||
done()
|
||||
|
||||
describe 'original-fs module', ->
|
||||
originalFs = require 'original-fs'
|
||||
|
||||
|
|
BIN
spec/fixtures/asar/script.asar
vendored
Executable file
BIN
spec/fixtures/asar/script.asar
vendored
Executable file
Binary file not shown.
Loading…
Reference in a new issue