]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix capturePage() spec.
authorCheng Zhao <zcbenz@gmail.com>
Sun, 15 Dec 2013 08:32:49 +0000 (16:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 15 Dec 2013 08:32:49 +0000 (16:32 +0800)
spec/api-browser-window-spec.coffee

index bcf308a2803c7c91c691f96f0f74275b29a1380e..c6a7283ff3d3c87b1cfeb98d398bc44c9daa97da 100644 (file)
@@ -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', ->