mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
22 lines
482 B
CoffeeScript
22 lines
482 B
CoffeeScript
nakedLoad 'jasmine-jquery'
|
|
$ = require 'jquery'
|
|
_ = require 'underscore'
|
|
Native = require 'native'
|
|
|
|
afterEach ->
|
|
(new Native).resetMainMenu()
|
|
|
|
window.atom = new (require 'app')
|
|
|
|
window.keydown = (pattern) ->
|
|
console.log @createKeyEvent(pattern)
|
|
$(document).trigger @createKeyEvent(pattern)
|
|
|
|
window.createKeyEvent = (pattern) ->
|
|
$.Event "keydown", atom.keyBinder.parseKeyPattern(pattern)
|
|
|
|
window.waitsForPromise = (fn) ->
|
|
window.waitsFor (moveOn) ->
|
|
fn().done(moveOn)
|
|
|