Move tests from window-event-handler-spec for moved functionality

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
This commit is contained in:
Nathan Sobo
2015-10-13 17:53:01 -06:00
committed by Max Brunsfeld
parent ed1c37cdbf
commit 432a59b8e5
3 changed files with 62 additions and 78 deletions

View File

@@ -582,9 +582,9 @@ class AtomEnvironment extends Model
console.warn error.message if error?
@disposables.add(@applicationDelegate.onDidOpenLocations(@openLocations.bind(this)))
@disposables.add(@applicationDelegate.onUpdateAvailable(@updateAvailable.bind(this)))
@disposables.add(@applicationDelegate.onApplicationMenuCommand(@dispatchApplicationMenuCommand.bind(this)))
@disposables.add(@applicationDelegate.onContextMenuCommand(@dispatchContextMenuCommand.bind(this)))
@listenForUpdates()
@config.load()
@themes.loadBaseStylesheets()
@@ -861,6 +861,9 @@ class AtomEnvironment extends Model
updateAvailable: (details) ->
@emitter.emit 'update-available', details
listenForUpdates: ->
@disposables.add(@applicationDelegate.onUpdateAvailable(@updateAvailable.bind(this)))
setBodyPlatformClass: ->
document.body.classList.add("platform-#{process.platform}")