spec: Check if window.global is set
This commit is contained in:
parent
096439dce7
commit
b6e8420bf2
2 changed files with 2 additions and 2 deletions
2
spec/fixtures/pages/c.html
vendored
2
spec/fixtures/pages/c.html
vendored
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
console.log([typeof require, typeof module, typeof process].join(' '));
|
||||
console.log([typeof require, typeof module, typeof process, typeof global].join(' '));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -34,7 +34,7 @@ describe '<webview> tag', ->
|
|||
describe 'nodeintegration attribute', ->
|
||||
it 'inserts no node symbols when not set', (done) ->
|
||||
webview.addEventListener 'console-message', (e) ->
|
||||
assert.equal e.message, 'undefined undefined undefined'
|
||||
assert.equal e.message, 'undefined undefined undefined undefined'
|
||||
done()
|
||||
webview.src = "file://#{fixtures}/pages/c.html"
|
||||
document.body.appendChild webview
|
||||
|
|
Loading…
Reference in a new issue