Add blur method to window ref #4724

This commit is contained in:
Max Beatty 2016-03-10 21:45:51 -08:00
parent 377a8eefb2
commit 704b8335aa
4 changed files with 17 additions and 0 deletions

View file

@ -145,6 +145,13 @@ describe('browser-window module', function() {
});
});
describe('BrowserWindow.blur()', function() {
it('removes focus from window', function() {
w.blur();
assert(!w.isFocused());
});
});
describe('BrowserWindow.capturePage(rect, callback)', function() {
it('calls the callback with a Buffer', function(done) {
w.capturePage({