spec: Check if window.global is set

This commit is contained in:
Cheng Zhao 2015-07-14 08:42:03 -07:00
parent 096439dce7
commit b6e8420bf2
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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