Merge pull request #4751 from maxbeatty/window-blur
Add blur method to window
This commit is contained in:
commit
03ec5ced05
4 changed files with 17 additions and 0 deletions
|
@ -186,6 +186,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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue