From: Cheng Zhao Date: Fri, 17 Oct 2014 14:55:09 +0000 (+0800) Subject: spec: BrowserWindow.showInactive() X-Git-Tag: v0.18.2~4^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=19c8864c32526916aab5b793ff2bd16aaa6e7e84;p=electron.git spec: BrowserWindow.showInactive() --- diff --git a/spec/api-browser-window-spec.coffee b/spec/api-browser-window-spec.coffee index 6a4a1c49..ce1a9da1 100644 --- a/spec/api-browser-window-spec.coffee +++ b/spec/api-browser-window-spec.coffee @@ -57,8 +57,13 @@ describe 'browser-window module', -> w.loadUrl 'about:blank' describe 'BrowserWindow.show()', -> - it 'should not focus window', -> + it 'should focus on window', -> w.show() + assert w.isFocused() + + describe 'BrowserWindow.showInactive()', -> + it 'should not focus on window', -> + w.showInactive() assert !w.isFocused() describe 'BrowserWindow.focus()', ->