Commit Graph

25616 Commits

Author SHA1 Message Date
Nathan Sobo
4a00d6ba35 Bind cmd/ctrl-w to close window in tests
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
3d5f6c858d Move grammar override assignment into loadStateSync
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
d0e1505a0f Inline deserializePackageStates into loadStateSync
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
a3e1b34e95 Add reload and toggle dev tools key bindings to test window
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
3491fa3650 Construct Project during Atom environment construction
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
d2e6cb0097 Fix updating of load settings
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
26f0ef5424 Move Project.deserialize to instance method
So we can instantiate atom.project during Atom environment construction.

Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-07 15:24:55 -05:00
Nathan Sobo
6348d8f078 Remove last Atom static methods 2015-10-07 15:24:54 -05:00
Nathan Sobo
6c67f42eab Move state loading for Atom environment to an instance method 2015-10-07 15:24:54 -05:00
Nathan Sobo
a87605164b Restore test window position after testing setPosition 2015-10-07 15:24:54 -05:00
Nathan Sobo
d08180ceb0 Remove mode parameter from atom environment 2015-10-07 15:24:54 -05:00
Nathan Sobo
677d7d6975 Load base stylesheets on ThemeManager construction 2015-10-07 15:24:54 -05:00
Nathan Sobo
b649cb48ef Move static Package methods to PackageManager instance 2015-10-07 15:24:54 -05:00
Nathan Sobo
727d6f60f7 🎨 2015-10-07 15:24:54 -05:00
Nathan Sobo
b240ffc161 🎨 2015-10-07 15:24:54 -05:00
Nathan Sobo
57bae5745f Check deprecations on travis 2015-10-07 15:24:54 -05:00
Nathan Sobo
e838863bc7 Handle window/document events in startEditorWindow and remove initialize 2015-10-07 15:24:54 -05:00
Nathan Sobo
dd4b9346bb Deserialize grammar on editor window start 2015-10-07 15:24:53 -05:00
Nathan Sobo
716807f619 Remove stray debugger 2015-10-07 15:24:53 -05:00
Nathan Sobo
0f5483a2ed Assign config schema on Atom environment construction 2015-10-07 15:24:53 -05:00
Nathan Sobo
4ca09ef7d3 Assign to cached load settings correctly 2015-10-07 15:24:53 -05:00
Nathan Sobo
ee270db7ac Move document mutation to startEditorWindow 2015-10-07 15:24:53 -05:00
Nathan Sobo
2737e05561 Display window in initialize-application-window script 2015-10-07 15:24:53 -05:00
Nathan Sobo
dba2a77e1f Assign env vars in initialize-application-window
Also, add a get-window-load-settings helper.
2015-10-07 15:24:53 -05:00
Nathan Sobo
7d014581cf Move installation of uncaught error handler to startEditorWindow 2015-10-07 15:24:53 -05:00
Nathan Sobo
a573e1f381 Watch for theme changes in ThemeManager instead of Atom environment 2015-10-07 15:24:53 -05:00
Nathan Sobo
a2563a1b4f Require ipc for use in default commands 2015-10-07 15:24:53 -05:00
Nathan Sobo
23d1151ca3 Initialize KeymapManager on Atom environment construction 2015-10-07 15:24:52 -05:00
Nathan Sobo
eead10a9c5 Initialize loadTime to null in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
bcabd0b8a9 ⬆️ donna to fix docs generation errors 2015-10-07 15:24:52 -05:00
Nathan Sobo
085b945015 Don't mess with disposables in initialize 2015-10-07 15:24:52 -05:00
Nathan Sobo
e0d426b817 Register deserializers, view providers, and commands in Atom constructor
Previously, these registrations were scattered all over the codebase and
required that `global.atom` be defined, which creating weird ordering
issues. Registering them all from the global makes the relationships
clearer and means we don’t have to assign a global to set up a fully-
functional environment.
2015-10-07 15:24:52 -05:00
Nathan Sobo
27762866c0 Build GrammarRegistry in Atom environment constructor
As part of this, we no longer serialize/deserialize the grammar registry
instance, but instead just restore the grammarOverridesByPath state.
Ultimately I’d like to store these overrides on the editor instead.
2015-10-07 15:24:52 -05:00
Nathan Sobo
c1f5d6b8bf Build Clipboard in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
35c2ccd508 Build MenuManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
6de0da792b Build ContextMenuManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
943f6cf513 Build ThemeManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
c4bbd2bbf2 Build StyleManager in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
33e7af611e Build views in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
5d919c89a1 Fix tooltip manager specs 2015-10-07 15:24:51 -05:00
Nathan Sobo
2c440dada8 Assign commands in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
54ab5980fa Assign tooltips in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
68b9512da0 Assign keymaps in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
88d80b1c97 Assign config in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
43c959fdeb Assign notifications in Atom environment constructor 2015-10-07 15:24:51 -05:00
Nathan Sobo
009dae1717 Default to using the jasmine-test-runner in Atom’s dev resource path 2015-10-07 15:24:51 -05:00
Nathan Sobo
b32d49fab1 Allow running of individual test paths in legacy jasmine runner 2015-10-07 15:24:51 -05:00
Nathan Sobo
2e54ae1e57 Allow a custom test runner path to be specified in package.json
If the nearest containing package.json of a test path has an
atomTestRunner field, we’ll require the specified file as a test runner
rather than the default jasmine runner.
2015-10-07 15:24:50 -05:00
Nathan Sobo
7a77ffde43 Log to stdout from terminal runner via ipc
For some reason, logging to stderr/stdout from the render process only
works when Atom is run via child_process.spawn, which is how `apm test`
invokes it.

I’m trying to make a convenient interface for running tests directly via
the `atom` command, and this is the only way I could find to long to
stdout from the render process.

I’m also choosing stdout rather than stderr because in this case, you’re
intentionally running the tests and want to see feedback.
2015-10-07 15:24:50 -05:00
Nathan Sobo
e4d64309b7 Allow multiple test paths to be specified as command line arguments 2015-10-07 15:24:50 -05:00