mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user