electron/spec/chromium-spec.coffee
2013-12-27 14:58:13 +08:00

23 lines
706 B
CoffeeScript

assert = require 'assert'
describe 'chromium feature', ->
describe 'heap snapshot', ->
it 'does not crash', ->
process.atomBinding('v8_util').takeHeapSnapshot()
describe 'sending request of http protocol urls', ->
it 'does not crash', ->
$.get 'https://api.github.com/zen'
describe 'navigator.webkitGetUserMedia', ->
it 'calls its callbacks', (done) ->
@timeout 5000
navigator.webkitGetUserMedia audio: true, video: false,
-> done()
-> done()
describe 'window.open', ->
it 'returns a BrowserWindow object', ->
b = window.open 'about:blank', 'test', 'show=no'
assert.equal b.constructor.name, 'BrowserWindow'
b.destroy()