mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Fix capturePage() spec.
This commit is contained in:
@@ -77,10 +77,11 @@ describe 'browser-window module', ->
|
||||
w.close()
|
||||
|
||||
describe 'BrowserWindow.capturePage(rect, callback)', ->
|
||||
it 'calls the callback with a Buffer', ->
|
||||
it 'calls the callback with a Buffer', (done) ->
|
||||
w = new BrowserWindow(show: false)
|
||||
w.capturePage {x: 0, y: 0, width: 100, height: 100}, (image) ->
|
||||
assert.equal image.constructor.name, 'SlowBuffer'
|
||||
assert.equal image.constructor.name, 'Buffer'
|
||||
done()
|
||||
w.close()
|
||||
|
||||
describe 'beforeunload handler', ->
|
||||
|
||||
Reference in New Issue
Block a user