Commit Graph

459 Commits

Author SHA1 Message Date
Daniel Hengeveld
281d6a66b9 Don't let label be null 2016-01-14 21:17:29 -05:00
Daniel Hengeveld
4fff6221bd Add option for custom label to waitsForPromise 2016-01-14 20:47:02 -05:00
Max Brunsfeld
327cf6997b Remember which packages use atom APIs at main module load time
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-11-23 17:35:38 -08:00
Max Brunsfeld
82103f9da0 Remove unused spec-helper requires 2015-10-16 16:49:24 -07:00
Nathan Sobo
b58b3504f4 Only load/save AtomEnvironment state if persistence is enabled 2015-10-14 22:10:51 -06:00
Nathan Sobo
95dd628d42 Fix for packages with no spec/fixtures directory 2015-10-14 17:10:30 -06:00
Nathan Sobo
f0da8f6324 Resolve package names to package currently being tested
This logic existed previously, but I accidentally removed it.
2015-10-14 16:35:00 -06:00
Antonio Scandurra
4b10f8a2b0 🔥 Avoid mocking atom.config in spec-helper 2015-10-14 12:47:33 +02:00
Antonio Scandurra
b25d3e944b Parameterize configDirPath and move config.load in ctor 2015-10-14 12:41:36 +02:00
Nathan Sobo
74d644ac73 Clear GrammarRegistry in AtomEnvironment::reset 2015-10-13 20:09:56 -06:00
Nathan Sobo
3ef6a9b63b Remove workspaceParentSelector and always attach to document body
Tests never call startEditorWindow anyway.
2015-10-13 19:54:29 -06:00
Nathan Sobo
a8ca3165a0 Remove dead code 2015-10-13 14:46:28 -06:00
Nathan Sobo
f7a3e6c425 Don’t load base style sheets until config is loaded
We need to know what themes are active in order to load the correct LESS
variables.
2015-10-12 16:12:46 -06:00
Nathan Sobo
69e8b0cfb1 Prevent title change during specs 2015-10-12 15:19:55 -06:00
Nathan Sobo
29fe98581e Don’t assign atom.themes.workspace in spec-helper 2015-10-12 13:54:35 -06:00
Antonio Scandurra
56e13bba69 Reset Workspace in AtomEnvironment 2015-10-12 15:01:00 +02:00
Antonio Scandurra
5d6713f6fa Pass deserializerManager in Workspace 2015-10-11 18:11:54 +02:00
Max Brunsfeld
b467c83e76 Remove unused requires in spec-helper 2015-10-09 13:46:51 -07:00
Antonio Scandurra
60e4b78da3 Move package reset down into PackageManager 2015-10-09 10:04:04 +02:00
Max Brunsfeld
43d0241685 Reset project in AtomEnvironment::reset 2015-10-08 17:54:43 -07:00
Max Brunsfeld
4835fef7be Reset service-hub in AtomEnvironment::reset() 2015-10-08 16:29:54 -07:00
Max Brunsfeld
c268b4e050 Remove unused stylesheet cleanup in spec-helper 2015-10-08 13:11:58 -07:00
Max Brunsfeld
fb2a1284f6 Clear notifications and context menus in AtomEnvironment::reset 2015-10-08 12:41:07 -07:00
Max Brunsfeld
9664d34750 Reset MenuManager in AtomEnvironment::reset 2015-10-08 11:56:12 -07:00
Antonio Scandurra
9ac4034135 🔥 Drop --spec-directory 2015-10-08 14:04:23 +02:00
Nathan Sobo
ca0dda77b6 Don’t bind window:close in spec helper 2015-10-07 15:25:07 -05:00
Nathan Sobo
0f4558c448 Don’t load key bindings in spec helper 2015-10-07 15:25:06 -05:00
Nathan Sobo
499272dfa1 Remove unused locals in spec-helper 2015-10-07 15:25:06 -05:00
Nathan Sobo
a9a6f38858 Don’t clear document requests in spec helper; happens in reset 2015-10-07 15:25:06 -05:00
Nathan Sobo
aa682d5b19 Restore initial styles in AtomEnvironment::reset 2015-10-07 15:25:06 -05:00
Thomas Johansen
a28a42b610 🔥 Remove duplicate key 2015-10-07 15:25:05 -05:00
Antonio Scandurra
a3a6db7f68 Don't use atom.{config,confirm} global in GitRepository 2015-10-07 15:25:05 -05:00
Nathan Sobo
e1c9f3332d Reset commands in AtomEnvironment::reset 2015-10-07 15:25:01 -05:00
Nathan Sobo
c4cfbab408 Reset key bindings in AtomEnvironment::reset 2015-10-07 15:25:00 -05:00
Nathan Sobo
b2359f44a6 Don’t use atom.grammars global in TokenizedBuffer 2015-10-07 15:25:00 -05:00
Nathan Sobo
dc0709ef9e Don’t use atom.assert global in DisplayBuffer 2015-10-07 15:24:59 -05:00
Nathan Sobo
8d7a08d07f Parameterize view registry on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
e803801145 Parameterize clipboard on TextEditor 2015-10-07 15:24:59 -05:00
Nathan Sobo
156cdfaf31 Move Workspace.deserialize to an instance method
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
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
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
677d7d6975 Load base stylesheets on ThemeManager construction 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
0f5483a2ed Assign config schema on Atom environment construction 2015-10-07 15:24:53 -05:00
Nathan Sobo
943f6cf513 Build ThemeManager in Atom environment constructor 2015-10-07 15:24:52 -05:00
Nathan Sobo
88d80b1c97 Assign config in Atom environment constructor 2015-10-07 15:24:51 -05:00
Thomas Johansen
b5c4f0c2ad 🔥 Remove uninstallAutocompletePlus and migrateSublimeTabsSettings 2015-09-22 10:37:06 -06:00
Nathan Sobo
eddd84c843 Drop jQuery from spec helper
Some of the global spec-helper methods that depend on jQuery may need
to be removed from package specs, but most should be rare based on my
checks.
2015-09-18 20:48:48 -06:00