Don't grab native window focus

Call $(window) instead of atom.focus() so the native window
doesn't regain focus on each spec run preventing it from running
in the background.
This commit is contained in:
Kevin Sawicki
2013-07-15 13:56:18 -07:00
parent 6bbcc58542
commit 9d733a2da9

View File

@@ -78,7 +78,7 @@ beforeEach ->
spyOn(clipboard, 'readText').andCallFake -> pasteboardContent
addCustomMatchers(this)
atom.focus() # Hack to get async events to fire
$(window).focus() # Hack to get async events to fire
afterEach ->
keymap.bindingSets = bindingSetsToRestore