Get spec suite running (lots of failures)

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-08-27 17:36:36 -05:00
parent da35ca4c44
commit 12b06ddf0c
68 changed files with 20427 additions and 1707 deletions

View File

@@ -1,6 +1,8 @@
# This a weirdo file. We don't create a Window class, we just add stuff to
# the DOM window.
$windowNumber = window.location.params.windowNumber
Native = require 'native'
TextMateBundle = require 'text-mate-bundle'
TextMateTheme = require 'text-mate-theme'
@@ -47,7 +49,7 @@ windowAdditions =
# Note: RootView assigns itself on window on initialization so that
# window.rootView is available when loading user configuration
attachRootView: (pathToOpen) ->
if rootViewState = atom.rootViewStates[$windowNumber]
if rootViewState = atom.rootViewStates?[$windowNumber]
RootView.deserialize(JSON.parse(rootViewState))
else
new RootView(pathToOpen)

View File

@@ -1,2 +1,2 @@
Atom = require 'atom'
window.atom = new Atom(atom.loadPath, $native)
window.atom = new Atom(atom.resourcePath, $native)