Focus specs window before each test to ensure focus assertions pass

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-30 16:10:47 -06:00
parent bc9d9842a7
commit 08b9d69f59
3 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ atom.toggleDevTools = ->
atom.showDevTools = ->
@sendMessageToBrowserProcess('showDevTools')
atom.focus = ->
@sendMessageToBrowserProcess('focus')
atom.getRootViewStateForPath = (path) ->
if json = localStorage[path]
JSON.parse(json)