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
Ash Wilson
e35510e928
Stub the storage folder application.json read
2019-04-18 17:05:41 -04:00
Ash Wilson
1a48b987ca
Allow LaunchScenario::launch() to accept an existing app
2019-04-18 17:05:25 -04:00
Ash Wilson
b854a698f7
Dump a shorthand description of the actual windows on assert failure
2019-04-18 17:05:08 -04:00
Ash Wilson
109fb1116b
Make the stubbed openLocations() sync for simplicity
2019-04-18 17:04:37 -04:00
Ash Wilson
097906c23f
AtomWindow tests
2019-04-18 16:20:26 -04:00
Ash Wilson
8f4c24b4e5
initialPaths and representedDirectoryPaths renaming
2019-04-18 16:19:23 -04:00
Ash Wilson
db2f8302bf
Bring the stub AtomWindow up to date
2019-04-18 16:19:06 -04:00
Ash Wilson
efeb2cdb0a
stat locations in parsePathToOpen()
2019-04-18 16:11:02 -04:00
Ash Wilson
f66002e193
Create stubbed AtomWindows instead of real ones in app tests
2019-04-18 10:51:25 -04:00