]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: BrowserWindow.showInactive()
authorCheng Zhao <zcbenz@gmail.com>
Fri, 17 Oct 2014 14:55:09 +0000 (22:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 17 Oct 2014 14:55:09 +0000 (22:55 +0800)
spec/api-browser-window-spec.coffee

index 6a4a1c494cc524c44d8c0d5bbe3c9ea9a3a733e0..ce1a9da1e9b33b0c0f57671807f4d55b9a963991 100644 (file)
@@ -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()', ->