Damien Guard
d47fd28c86
Focus new window when existing copy of Atom running fixes #4324
2016-08-12 17:45:24 -07:00
Nathan Sobo
ebb03f022b
Merge branch 'master' into ns-mock-animation-frames-in-editor-spec
2016-08-12 16:16:09 -06:00
Nathan Sobo
ced2174b5a
Mock clock and animation frames in TextEditorComponent specs
2016-08-12 15:21:46 -06:00
Nathan Sobo
2710ce33d1
Merge pull request #12394 from atom/ns-as-switch-offset-test-to-mocha
...
Replace ChromeDriver integration tests main process Mocha tests
2016-08-12 14:17:16 -06:00
Antonio Scandurra
e02863e86e
Destroy AtomEnvironment on window unload
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-12 18:15:51 +02:00
Antonio Scandurra
753db274fc
Clear storage data after each AtomApplication test
...
This, along with using a temporary directory as the ATOM_HOME, will make
sure that tests won't share any state with one another, possibly
increasing the level of resiliency of the suite.
2016-08-12 15:20:58 +02:00
Antonio Scandurra
c422699c80
Call @config.load() in AtomApplication constructor
...
This is needed in order to test configuration settings like
`restorePreviousWindowsOnStart`. Even if this call has side effects, its
scope is pretty constrained because it affects only the temporary
directory we create before each atom-application test.
2016-08-12 11:21:37 +02:00
Antonio Scandurra
f287e8783f
Return an AtomWindow array in loadState or null if no state is found
2016-08-12 10:49:46 +02:00
Antonio Scandurra
fff2ecd162
Extract a AtomApplication.prototype.launch method
...
...so that we can exercise loading previously opened windows stored
state after the application is restarted. In addition, this resembles
more what we run in production, and therefore allows us to have a better
coverage of the code paths we run in the real application.
2016-08-12 10:44:09 +02:00
Antonio Scandurra
a8c73f0529
Fix calling atom --version
2016-08-12 09:33:15 +02:00
Joe Fitzgerald
485cb71be7
🎨 envShouldBePatched > shouldGetEnvFromShell
2016-08-11 17:07:21 -06:00
Joe Fitzgerald
9ec63a8ffc
🎨 Cleanup
...
* shellShouldBePatched > envShouldBePatched
2016-08-11 16:45:19 -06:00
Nathan Sobo
dbfd0cc605
Move integration test of window persistence to main process tests
2016-08-11 15:28:11 -06:00
Nathan Sobo
f1295d39a8
Close all windows in AtomApplication.destroy
2016-08-11 14:31:36 -06:00
Nathan Sobo
6994060e72
Use fat arrow where it is needed
2016-08-11 14:31:23 -06:00
Nathan Sobo
b5b3577d7c
Fix null guard in StateStore
2016-08-11 14:31:08 -06:00
Nathan Sobo
2fe5027b57
Set the userData dir to a temp directory for main process tests
...
This ensures that the indexedDB is accessible even if another Atom is
running.
2016-08-11 14:30:52 -06:00
Nathan Sobo
324e8d6c7a
Move env assignment into parseCommandLine
...
A bit of a misnomer but makes things more testable so I’ll accept it
until we can do more overhaul.
2016-08-11 14:30:22 -06:00
Joe Fitzgerald
b7a48967fa
Fix Regression In #12317 For zsh
...
In Atom 1.7 and 1.8, the environment would be patched for users of the zsh shell on OS X. A whitelist of shells was established in #12317 , which is extended here.
2016-08-11 12:45:02 -06:00
Nathan Sobo
847911f0fe
Extract parseCommandLine from main.js to its own file for testing
...
Signed-off-by: Antonio Scandurra <as-cii@github.com >
2016-08-11 12:44:20 -06:00
Nathan Sobo
502339b830
Replace chromedriver test of window offset with main process mocha test
...
Signed-off-by: Antonio Scandurra <as-cii@github.com >
2016-08-11 10:33:12 -06:00
Nathan Sobo
d8b2a1f4b6
Break out constructor side effects into AtomApplication.initialize
...
Signed-off-by: Antonio Scandurra <as-cii@github.com >
2016-08-11 08:15:00 -06:00
Antonio Scandurra
23f421154e
Delete TokenizedBuffer.prototype.onDidChange
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-10 17:52:49 +02:00
Antonio Scandurra
6ae263aed4
Register text decoration layer when initializing TokenizedBuffer
2016-08-10 11:47:07 +02:00
Max Brunsfeld
5d24bcf19e
Merge pull request #12237 from zertosh/cleanup-activation-hook-subscrtiptions
...
Cleanup activationHookSubscriptions when deactivating package
2016-08-09 17:08:49 -07:00
Max Brunsfeld
29096bde31
Don't update ATOM_HOME env var after launch
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-09 14:38:19 -07:00
Max Brunsfeld
3103682efd
Bypass aliases when running env shell command
2016-08-09 14:25:25 -07:00
Nathan Sobo
e6514bf3d8
Merge pull request #12377 from atom/ns-stringify-temp-window-state
...
Stringify/parse temporary window state to avoid nulling out references
2016-08-09 15:20:30 -06:00
Nathan Sobo
dfc0910023
Stringify/parse temporary window state to avoid nulling out references
...
If the object passed via IPC contains any keys of the same reference,
all but one of these keys will be nulled out. Converting to/from a
string avoids this problem.
2016-08-09 14:43:38 -06:00
Max Brunsfeld
52af31c511
Trigger grammar-used hooks no matter how text editors are created
2016-08-09 12:04:01 -07:00
Damien Guard
bbaf5f56b2
Merge pull request #12281 from atom/telemetry-consent
...
Add telemetry consent setting
2016-08-09 07:53:18 -07:00
Max Brunsfeld
aa3a38fc27
Merge pull request #12350 from atom/mq-js-exports
...
Rewrite exports/atom.coffee as JS
2016-08-08 12:04:34 -07:00
Antonio Scandurra
4b6f09cd10
Assert that all buffer events are processed sequentially
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-08 18:41:20 +02:00
Antonio Scandurra
94b4709db1
Store last buffer change event id on TokenizedBuffer
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-08 18:09:28 +02:00
Machiste Quintana
ab9a2a92c8
Rewrite exports/atom.coffee as JS
2016-08-06 17:20:46 -07:00
Zirro
99b19aa05e
🎨 Remove duplicate "Note:"
2016-08-06 20:21:26 +02:00
Nathan Sobo
21de77b739
Merge pull request #12346 from atom/ns-fix-repository-status-updates
...
Avoid passing paths outside of repository to git status subprocesses
2016-08-06 08:30:46 -06:00
Nathan Sobo
520a4a7db0
Merge pull request #12327 from Zirro/custom-title-bar-double-click
...
Handle double-click on custom title bar
2016-08-06 08:29:53 -06:00
Nathan Sobo
d8a54c9a38
Fix another path reassignment 😬
2016-08-06 08:10:17 -06:00
Nathan Sobo
ca76302b35
Fix reassignment of path variable. Grrrrr CoffeeScript.
2016-08-06 07:09:43 -06:00
Nathan Sobo
cd8e4eb43e
Avoid passing paths outside of repository to status subprocess
2016-08-06 07:00:24 -06:00
Zirro
04b8bd03ae
Introduce a non-explicit getUserDefault-method
2016-08-05 21:40:34 +02:00
Yuya Tanaka
1ce2f6ce87
🐛 Fix window size is not updated on resize
2016-08-05 11:56:01 +09:00
Max Brunsfeld
c0e94aac5e
Handle null env load setting
2016-08-04 15:54:15 -07:00
Zirro
24befe2454
Handle double-click on custom title bar
2016-08-04 23:11:22 +02:00
Max Brunsfeld
0beb4bec42
Merge branch 'master' into ns-fix-decorated-layer-destruction
2016-08-04 13:30:59 -07:00
Max Brunsfeld
a589543277
🎨 Fix Decoration::destroy docs
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-04 12:29:46 -07:00
Max Brunsfeld
4634091e9b
Don't update the NODE_PATH when updating the environment on launch
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-08-03 15:50:21 -07:00
Antonio Scandurra
45afe07dc1
Don't throw an error when ATOM_HOME does not exist
2016-08-03 15:59:00 +02:00
Max Brunsfeld
a56db9a03e
Merge pull request #12297 from atom/mb-pass-missing-softwrap-hanging-indent-param
...
Supply missing softWrapHangingIndent parameter to display layer
2016-08-02 17:02:59 -07:00