Don't rely on real focus/blur events in tests
It is super unreliable.
This commit is contained in:
parent
19436358fb
commit
0120be5b8c
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
assert = require 'assert'
|
||||
app = require('remote').require 'app'
|
||||
remote = require 'remote'
|
||||
app = remote.require 'app'
|
||||
BrowserWindow = remote.require 'browser-window'
|
||||
|
||||
describe 'app module', ->
|
||||
|
@ -40,5 +40,5 @@ describe 'app module', ->
|
|||
done()
|
||||
app.once 'browser-window-focus', (e, window) ->
|
||||
assert.equal w.id, window.id
|
||||
w.hide()
|
||||
w.show()
|
||||
w.emit 'blur'
|
||||
w.emit 'focus'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue