Make toggle-dev-tools command work in spec window

This commit is contained in:
Corey Johnson & Nathan Sobo
2013-02-20 09:58:00 -08:00
parent d9eba58698
commit cb1e48bfef
3 changed files with 2 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ afterEach ->
# window.keymap.bindKeys '*', 'meta-w': 'close'
$(document).on 'close', -> window.close()
$(document).on 'toggle-dev-tools', (e) ->
atom.toggleDevTools() if $('#root-view').length is 0
$(window).on 'toggle-dev-tools', (e) -> atom.toggleDevTools()
$('html,body').css('overflow', 'auto')
jasmine.getEnv().addEqualityTester(_.isEqual) # Use underscore's definition of equality for toEqual assertions