mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Show the window synchronously in specs
Showing it asynchronously was causing specs to fail that relied on a mini editor having focus in the very first spec run.
This commit is contained in:
@@ -5,7 +5,11 @@ try
|
||||
require '../src/window'
|
||||
Atom = require '../src/atom'
|
||||
window.atom = Atom.loadOrCreate('spec')
|
||||
window.atom.show() unless atom.getLoadSettings().exitWhenDone
|
||||
|
||||
# Show window synchronously so a focusout doesn't fire on input elements
|
||||
# that are focused in the very first spec run.
|
||||
atom.getCurrentWindow().show() unless atom.getLoadSettings().exitWhenDone
|
||||
|
||||
{runSpecSuite} = require './jasmine-helper'
|
||||
|
||||
document.title = "Spec Suite"
|
||||
|
||||
Reference in New Issue
Block a user