Commit Graph

223 Commits

Author SHA1 Message Date
DeeDeeG
ec90256971
Fix a spec to expect 'Pulsar', not 'Atom' (#116) 2022-11-09 22:08:24 -05:00
DeeDeeG
38509f2662 spec: Update benchmark-related spec
Update spec to expect the new behavior where benchmark mode
doesn't open a new window (only logs a message to the console).
2022-11-03 22:56:00 -04:00
confused-Techie
9ff325dc3e Removed telemetry testing. Removed remote crash reports 2022-08-29 20:17:08 -07:00
sadick254
cdbbcab4a7
Stub global.atom
The test don't require the atom environment to be setup.
2021-08-18 23:27:06 +03:00
DeeDeeG
7928a1b339
Fix buggy partial startup on macOS due to flag added by Gatekeeper/XProtect (#21861)
macOS Gatekeeper adds a flag ("-psn_0_[six or seven digits here]") when it intercepts Atom launches.
This happens for fresh downloads, new installs, or first launches after upgrading).
 We don't need this flag, and yargs interprets it as many short flags. So, we filter it out.
2021-01-18 19:22:22 +03:00
sadick254
809303b422 Update stub usage 2020-09-22 18:17:58 +03:00
Bulby
10dfeb8c56
Allow Title Bar to be Hidden 2020-09-07 21:41:01 +03:00
Rafael Oleza
f7b7545fd0 Create get-app-name module that returns correct application name
Before, in order to retrieve the application name, Electron's
`getName()` method was used (https://electronjs.org/docs/api/app#appgetname).

Now, instead, we also use the Atom version in order to calculate the release
channel and be able to have it on the app name (e.g `Atom Nightly`).
2019-07-04 13:21:14 +02:00
Antonio Scandurra
6d9f6befd2 Increase timeout for atom-application.test.js on CI
On Azure and Travis, we recently started observing a few test failures 
in atom-application.test.js.

After staring at those tests for a bit, it doesn't seem like they are 
failing due to a race condition. Instead, it is possible that these 
tests are simply timing out due to CI containers sometimes being 
overloaded and, thus, slower.  I tested this hypothesis locally by 
running tests on a VM while stress-testing the host machine. Tests would 
eventually have passed, but they  timed out before having the chance to 
do so.

This commit increases the timeout on CI to 10 seconds for 
`AtomApplication` tests in  an attempt to fix the spurious failures we 
were observing. This is similar to what we've historically done for 
renderer process tests (see 
7faea50190/spec/spec-helper.coffee (L50)).
2019-06-13 16:36:55 +02:00
Antonio Scandurra
6a88fa4185 Don't symlink compile-cache folder in AtomWindow tests
In these tests, we create a temporary `ATOM_HOME` to avoid cluttering 
the user's real `~/.atom` folder.

Adding a symlink to the real `compile-cache` was introduced to speed up 
main process tests, so that the transpilation cache could be reused. 

Unfortunately, when the real `~/.atom` folder did not exist (such as on 
a pristine environment on CI), it would confuse Atom, which would think 
that it didn't need to re-create a `compile-cache` folder again, but 
wouldn't be able to write to it because the symlink pointed to a 
non-existant directory.

Main process tests were overhauled and made faster recently, so we can 
safely remove this performance optimization.
2019-06-06 17:11:01 +02:00
Rafael Oleza
7f3f040628 Reformat all JS files using prettier 2019-05-31 18:33:56 +02:00
Rafael Oleza
691c90e4b5 Fix atom.open() 2019-05-07 19:14:32 +02:00
Rafael Oleza
1efa4f36ea Decaffeinate src/initialize-application-window.js 2019-05-07 12:47:10 +02:00
Rafael Oleza
fb79283d15 Increase the timeout for the FileRecoveryService tests 2019-05-03 17:27:48 +02:00
Ash Wilson
3ee3641525
Merge pull request #19247 from atom/aw/drag-and-drop
Always use target window for drag-and-drop
2019-05-01 12:44:43 -04:00
Ash Wilson
61377b843c
Support a "here" option in the "open" IPC message handler 2019-05-01 09:02:02 -04:00
Rafael Oleza
3fcdcde74d Use async randomBytes API to speedup Windows startup 2019-04-30 19:14:54 +02:00
Ash Wilson
e368d78d27
Main process test for dev mode and benchmark windows 2019-04-28 17:21:37 -04:00
Ash Wilson
c8beb6ffab
Open loaded window options *first* 2019-04-24 15:22:32 -04:00
Ash Wilson
a53addbf78
Update AtomWindow::projectRoots synchronously on openLocations() 2019-04-24 15:04:59 -04:00
Ash Wilson
f4be123137
Test a new application.json schema and our handling of the old one 2019-04-24 10:17:20 -04:00
Ash Wilson
a0e9bb785f
Merge pull request #19203 from atom/aw/reopen-projects
"Reopen projects" in a new window
2019-04-23 17:35:13 -04:00
Ash Wilson
213f3b28b3
Rework and test IPC events that create windows 2019-04-23 11:18:53 -04:00
Jason Rudolph
5055be06ca
Update spec/main-process/atom-application.test.js
Co-Authored-By: smashwilson <smashwilson@github.com>
2019-04-22 16:00:28 -04:00
Ash Wilson
ab490a064a
Test for restoring windows over directories and files 2019-04-19 18:07:18 -04:00
Ash Wilson
c719dc8aa2
Test empty command-line cases 2019-04-19 17:37:23 -04:00
Ash Wilson
96e6403573
Remove unused forceAddToWindow 2019-04-19 17:36:33 -04:00
Ash Wilson
cc1ddf1011
Use hasOpenFiles to flag a window that will receive openLocations() 2019-04-19 15:50:03 -04:00
Ash Wilson
190875873e
📝 Document the LaunchScenario stuff 2019-04-19 15:07:33 -04:00
Ash Wilson
53188eb19d
Distinct test names 2019-04-19 14:33:00 -04:00
Ash Wilson
1a123c06ef
Line separators are hard okay 2019-04-19 13:59:30 -04:00
Ash Wilson
97c4038906
Fix problems with _dimensions being modified in-place 2019-04-19 13:10:17 -04:00
Ash Wilson
e8cc4aa421
Call removeWindow() explicitly to simulate a window close 2019-04-19 12:55:03 -04:00
Ash Wilson
b9268c703c
URL pathnames use /, not path.sep 2019-04-19 12:53:30 -04:00
Ash Wilson
c4f3b519d3
Replace the AtomApplication test suite 2019-04-19 12:07:21 -04:00
Ash Wilson
3645cef518
More marking stuff covered 2019-04-19 12:06:09 -04:00
Ash Wilson
a3a44006be
Tests for URL handling, no-window actions on macOS, and app re-use 2019-04-19 12:06:01 -04:00
Ash Wilson
37e471b315
Omit missing windows from the shorthand assertion summary 2019-04-19 12:05:16 -04:00
Ash Wilson
91dce7faba
Track created windows in the createWindow stub 2019-04-19 12:04:51 -04:00
Ash Wilson
af28d3c248
Pass atom:// URL arguments through directly 2019-04-19 12:04:17 -04:00
Ash Wilson
1ba571becd
Create and restore ATOM_HOME for the socket stuff 2019-04-19 12:03:58 -04:00
Ash Wilson
ad2b431c5c
Stub trivial isSpecWindow method 2019-04-19 12:03:22 -04:00
Ash Wilson
18ec08735e
Don't require locationsToOpen in load settings 2019-04-19 12:03:04 -04:00
Ash Wilson
e0b495c36a
Marking off the test cases I've covered in the new suite 2019-04-18 22:58:17 -04:00
Ash Wilson
6f888484f0
Left in a console 👀 2019-04-18 22:58:00 -04:00
Ash Wilson
3f942f83de
Port over a bunch of AtomApplication tests 2019-04-18 22:57:27 -04:00
Ash Wilson
b0f4477986
Test behavior for collapsing new paths into restored ones 2019-04-18 21:13:56 -04:00
Ash Wilson
b1d6e42aa9
Add preserveFocus flag to keep main process tests from stealing focus 2019-04-18 21:10:41 -04:00
Ash Wilson
e782cea2bf
Test for window restoration on launch, not open 2019-04-18 17:13:03 -04:00
Ash Wilson
c0a39e04e2
Tests for restoration of previous window state 2019-04-18 17:06:42 -04:00