spec: Fix BrowserWindow.capturePage

This commit is contained in:
Cheng Zhao 2015-02-12 14:37:32 +08:00
parent 353b485202
commit faf40457c5

View file

@ -78,7 +78,7 @@ describe 'browser-window module', ->
describe 'BrowserWindow.capturePage(rect, callback)', ->
it 'calls the callback with a Buffer', (done) ->
w.capturePage {x: 0, y: 0, width: 100, height: 100}, (image) ->
assert.equal image.constructor.name, 'Buffer'
assert.equal image.isEmpty(), true
done()
describe 'BrowserWindow.setSize(width, height)', ->