Commit Graph

250 Commits

Author SHA1 Message Date
Wliu
8c767a82d6 Remove OS X conditional logic 2016-01-14 11:01:59 -05:00
Wliu
39e9075e01 Don't cascade maximized windows
Fixes #10335
2016-01-14 14:31:09 +00:00
Max Brunsfeld
ec66a66bb3 Merge pull request #9990 from scv119/test
Add a core config `core.automaticallyUpdate` to disable Atom autoupdate.
2016-01-07 11:05:43 -08:00
joshaber
94b77d0998 Separate the offset determination from the dimensions. 2016-01-05 11:59:59 -05:00
joshaber
fb8b25dc16 Merge branch 'master' into cascade-windows 2016-01-04 16:49:07 -05:00
joshaber
dcd860ae6f Use the last focused window instead of the last opened window. 2016-01-01 12:18:48 -05:00
joshaber
9e7cb15c2c Offset on Windows too. 2016-01-01 12:05:42 -05:00
joshaber
a63e70148d Cascade new windows on OS X
Fixes #10057.
2015-12-30 17:33:45 -05:00
joshaber
5c14d3e99b Don't fail if event is undefined.
Unclear why this is undefined, but apparently it is.
2015-12-30 14:33:23 -05:00
joshaber
7024e000a8 Provide some defaults.
Otherwise we’ll get:

TypeError: Cannot read property 'pathToOpen' of undefined

when called from ‘application:new-file’.
2015-12-30 14:32:55 -05:00
Chen Shen
d227d8b646 Add config to disable autoupdate, revert previous build option 2015-12-15 17:20:57 -08:00
Douwe Maan
948aaa0652 Add opened files and folders to recent documents menu 2015-12-01 11:07:10 +01:00
Kevin Sawicki
838f6fb7b1 Merge pull request #9606 from DouweM/dock-menu
Add OS X dock menu with 'New Window' option
2015-11-30 17:15:32 -08:00
Nathan Sobo
a126374a7b Coerce boolean options to booleans
Pairing with @as-cii
2015-11-19 08:14:24 -08:00
Douwe Maan
288abbc57b Add OS X dock menu with 'New Window' option 2015-11-16 17:54:29 +01:00
Nathan Sobo
a8ceaa80f1 Always set devMode to true for spec windows 2015-11-06 16:01:21 -07:00
Max Brunsfeld
3ba9fafbc5 Merge pull request #9218 from atom/mb-fix-dev-mode-new-window
Don't try to reuse existing normal windows as dev mode windows
2015-10-21 13:46:15 -07:00
Nathan Sobo
33839d1f0e Pass current options to loadState 2015-10-20 19:52:42 -06:00
Max Brunsfeld
3535525ad9 Don't try to reuse existing normal windows as dev mode windows 2015-10-19 13:43:40 -07:00
Nathan Sobo
abee4c1db4 Default devMode to true ASAP if running Atom in test mode
Previously, we ran the window in devMode, but didn’t set devMode to true
early enough to compute the correct resource path. This caused errors
when attempting to load the bundled keymaps when running atom —test
without the —dev flag.
2015-10-17 10:39:26 -06:00
Antonio Scandurra
c38cd48555 Bring back failure reports when running grunt run-specs
Log output to stderr as we did before, so that grunt can, in turn, output it to
console when specs fail.

Welcome back build failures! 🎉

/cc: @nathansobo @maxbrunsfeld
2015-10-15 09:56:13 +02:00
Nathan Sobo
3876deddf3 Merge branch 'master' into ns-alternative-test-env 2015-10-13 17:59:46 -06:00
Nathan Sobo
919571f328 Use ApplicationDelegate in WindowEventHandler
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-13 17:29:41 -06:00
Nathan Sobo
e92cb86335 Introduce ApplicationDelegate to AtomEnvironment
All external actions are performed via this delegate for test-isolation
purposes.
2015-10-13 15:42:57 -06:00
Jacek Kopecky
d04769907c prevent use of socket in apm test 2015-10-13 17:36:57 +01:00
Antonio Scandurra
4a59da9194 Express timeout in seconds 2015-10-13 08:35:02 +02:00
Antonio Scandurra
4863b71fd7 Set timeout in the main process 2015-10-09 09:20:19 +02:00
Antonio Scandurra
9ac4034135 🔥 Drop --spec-directory 2015-10-08 14:04:23 +02:00
Antonio Scandurra
5da32540b1 🎨 2015-10-08 11:54:11 +02:00
Antonio Scandurra
1d280e8d92 Introduce timeout option
The idea with this commit is to implement a timeout functionality that does not
rely on a system utility (such as unix `timeout`). Tests could hang because of a
CPU-bound task and, as a result, we need to handle timeouts in a separate
process.

An ideal implementation would first spawn the timeout, which in turn would spawn
the tests, acting as a supervisor and making sure they do not exceed the
supplied time. However, setting up such an environment would have been trickier,
thus the test process spawns the timeout cop before running any test. This, in
turn, invokes a `setTimeout` function and kills the parent process as soon as
the timeout gets triggered, logging to console the reason why the parent process
was killed (and exiting the parent process with code 130).

I haven't used `Task` because, in order to log stuff to the console, we need to
fork the ChildProcess from `remote`, as otherwise nothing gets written out.
2015-10-08 11:38:48 +02:00
Antonio Scandurra
52c43a71d3 Pass legacyTestRunner parameter 2015-10-07 15:25:06 -05:00
Max Brunsfeld
4988f6be11 Remove application:run-all-specs command 2015-10-07 15:25:05 -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
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
Nathan Sobo
e886d8b253 Rename “bootstrap” scripts
They’re just window initialization scripts, and this new naming makes
that a lot clearer.
2015-10-07 15:24:50 -05:00
Nathan Sobo
8e988e874e Rename exitWhenDone to headless 2015-10-07 15:24:50 -05:00
Max Brunsfeld
06a0a26ba0 Include version in socket path on mac and linux 2015-10-06 10:17:29 -07:00
Chen Shen
1900f766e7 Add --no-autoupdate while run scripts/build to disable autoupdate 2015-09-22 11:34:08 -07:00
Nathan Sobo
1f395a7e8c Remove mentions of benchmarks from the build, command palette 2015-09-18 20:48:50 -06:00
Max Brunsfeld
c4fc8e55fa Use correct executedFrom value for subsequent invocations 2015-09-03 16:03:02 -07:00
Max Brunsfeld
e5da009cdc Strip colon-number suffixes from args before parsing them as URLs 2015-09-03 11:31:01 -07:00
Max Brunsfeld
0a8ff35c3a 🎨 Pass devResourcePath as an argument to AtomApplication 2015-09-03 10:30:08 -07:00
Max Brunsfeld
61f7de736f Normalize resource path drive letters in main 2015-09-01 12:20:05 -07:00
Max Brunsfeld
5be3d4f82f Normalize drive letter case on windows 2015-09-01 12:17:19 -07:00
Machiste Quintana
5e5139b753 Use about for About Atom 2015-07-24 19:52:45 -04:00
Kevin Sawicki
30dccf987d Require dialog and shell early in browser process
Prevents issues when the asar bundle changes before these
files are required.
2015-07-06 16:49:59 -07:00
Nounours Heureux
481b83c1ac Set a default statement 2015-07-04 11:43:54 +02:00
Nounours Heureux
d663a43b27 Different title for file dialogs and folder dialogs. 2015-07-03 19:43:10 +02:00