Commit Graph

577 Commits

Author SHA1 Message Date
Ben Ogle
f679c4319c Merge branch 'beta' 2015-10-21 17:03:31 -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
Wliu
6495f1a531 Revert "🔥 subpixel-font-scaling"
This reverts commit 1c0420b3bb.
2015-10-16 19:58:47 -04:00
Wliu
1c0420b3bb 🔥 subpixel-font-scaling
This option was removed in Electron v0.33.9
2015-10-16 19:57:40 -04:00
Nathan Sobo
26a5b26cb9 Merge pull request #8779 from atom/cz-electron-32
Update to Electron v0.33.x
2015-10-16 15:59:14 -06:00
Max Brunsfeld
cd9e24ea33 Don't prevent renderer-side reloads 2015-10-16 12:04:35 -07:00
Nathan Sobo
5f2b5a16df Use WebContents.prototype.isLoading instead of defunct .loaded
Fixes cmd-o interaction.
2015-10-16 11:08:51 -06:00
Cheng Zhao
70fc6dd524 registerProtocol has been deprecated 2015-10-16 11:08:51 -06:00
Max Brunsfeld
27526f492c Fix fall-back to dev resource path in main 2015-10-15 18:01:20 -07: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
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
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
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
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
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