Add spec for window.open.

This commit is contained in:
Cheng Zhao 2013-12-27 14:58:13 +08:00
parent 0de40febab
commit 6312c1108a

View file

@ -1,3 +1,5 @@
assert = require 'assert'
describe 'chromium feature', ->
describe 'heap snapshot', ->
it 'does not crash', ->
@ -13,3 +15,9 @@ describe 'chromium feature', ->
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()