]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: Check if window.global is set
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 15:42:03 +0000 (08:42 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 16:15:03 +0000 (09:15 -0700)
spec/fixtures/pages/c.html
spec/webview-spec.coffee

index f0e33fde5ea150b7aa08a3d499d78115a3d9db12..bc55104ec53548255b871111de1b4820905d4d1d 100644 (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>
index cd22e57a18bf8b070b899f10c98a5efe08ec38b3..b47c72ac0fb83ce7770625baf1787245f24a4dc5 100644 (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