Commit Graph

623 Commits

Author SHA1 Message Date
Dave Rael
28a1bbf9a2 Fix function names - consistent with convention 2015-10-15 14:35:04 -06:00
Dave Rael
265ee01c1d Clean convention inconsistencies for portable mode 2015-10-15 14:32:33 -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
Max Brunsfeld
fdb1642270 Include version query parameter for windows auto-updates
Squirrel.Windows supports this now, and we need it to distinguish beta from
stable versions
2015-10-14 14:07:26 -07:00
Dave Rael
16c2391b14 Add notification if Portable Home not writable 2015-10-14 14:03:32 -06: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
Dave Rael
4312f76ed7 Added command line parameter to set portable
If parameter included, home directory will be copied to the portable
location to make this a portable install
2015-10-13 05:43:01 -06:00
Antonio Scandurra
4a59da9194 Express timeout in seconds 2015-10-13 08:35:02 +02:00
Nathan Sobo
d4c88cc7fd Merge branch 'master' into ns-alternative-test-env 2015-10-12 15:55:28 -06:00
Thomas Johansen
af36a23e95 🐛 Fix #4300 by preventing 'will-navigate' 2015-10-10 01:21:49 +02:00
Dave Rael
b8a153781e Implement Portable Mode
According to these specifications:
Portable mode only applies to Windows (for now)
Portable mode only applies if ATOM_HOME is not set
If there is a .atom directory as sibling to directory with running process
	use that as ATOM_HOME
2015-10-09 11:20:41 -06: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
Nathan Sobo
4c51d29868 Merge remote-tracking branch 'origin/master' into ns-alternative-test-env 2015-10-07 16:10:29 -05:00
Nathan Sobo
3636eb35d8 Merge pull request #8811 from atom/as-double-reflow-measurements
DOM-based measurements
2015-10-07 15:43:59 -05: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
d34968b750 Prevent GPU throttling for hidden test windows 2015-10-07 15:25:00 -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
Dave Rael
f067fdb7cd Merge branch 'master' into portable-mode
Conflicts:
	src/browser/main.coffee
2015-10-06 14:28:10 -06:00
Max Brunsfeld
06a0a26ba0 Include version in socket path on mac and linux 2015-10-06 10:17:29 -07:00
Antonio Scandurra
3df6ed8405 Merge branch 'master' into as-double-reflow-measurements 2015-10-03 15:53:34 +02:00
Antonio Scandurra
beb7896234 Enable subpixel font scaling
For certain font sizes, enabling `textRendering: optimizeLegibility` caused a
bunch of measurement-related issues. You can reproduce it by setting the following in your stylesheet:

```
atom-text-editor {
  font-size: 14px;
  text-rendering: optimizeLegibility;
}
```

Although I wanted to defer subpixel font scaling to a later moment, it seems
like Chrome needs to have it enabled in order to properly support the
"legibility" path for text rendering. (I guess this is part of the reason why
the Chromium team enabled it by default at some point in the past.)
2015-10-02 18:14:09 +02:00
Jeremy Ebneyamin
5b522f70c2 🐛 Fix Windows context menu shortcut
Fix the bug where Open With Atom on Windows machines will fail for paths
containing spaces. Wraps quotes around the path to the Atom executable
in the reg key string.
2015-10-02 00:06:30 -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
41fb82b6a0 Merge branch 'beta' 2015-09-21 15:10:19 -06:00
Paul Betts
47f973db38 Fix incorrect indentation on setAppUserModelId
Fixes #7374
2015-09-21 15:08:02 -06:00
Nathan Sobo
1f395a7e8c Remove mentions of benchmarks from the build, command palette 2015-09-18 20:48:50 -06:00
Max Brunsfeld
f56dde9c91 Setup browser-process exception handler before requiring anything
Signed-off-by: Nathan Sobo <nathan@github.com>
2015-09-09 11:57:54 -07:00
Paul Betts
477559581e Correctly handle devMode 2015-09-07 12:13:34 -07:00
Paul Betts
4a53619780 Patch the browser process too 2015-09-07 11:56:46 -07:00
Paul Betts
b483fc6805 Set App User Model ID on Win32 2015-09-06 10:27:25 +02: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
ed62685c78 🎨 main.coffee 2015-09-03 10:28:37 -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
Max Brunsfeld
f531684acf Use compile-cache in browser process (for dev mode) 2015-08-20 17:59:29 -07:00
Machiste Quintana
5e5139b753 Use about for About Atom 2015-07-24 19:52:45 -04:00