]> khamidou — GitHub mirrors - electron.git/commitdiff
No need to open video when testing webkitGetUserMedia.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 21 Aug 2013 02:33:42 +0000 (10:33 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 21 Aug 2013 03:41:08 +0000 (11:41 +0800)
The purpose of this test is to test whether the callback can be called.

spec/web/webrtc.coffee

index 6fc474e8983db90d35d36b5551510296b4c2101d..c2e2c3419fd7a4e0652c1f753a57050253939792 100644 (file)
@@ -2,6 +2,6 @@ describe 'webrtc', ->
   describe 'navigator.webkitGetUserMedia', ->
     it 'should call its callbacks', (done) ->
       @timeout 5000
-      navigator.webkitGetUserMedia audio: true, video: true,
+      navigator.webkitGetUserMedia audio: true, video: false,
         -> done()
         -> done()