Commit Graph

200 Commits

Author SHA1 Message Date
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
Ash Wilson
87a4213b6a Rewrite AtomApplication::openPaths() logic to find existing windows 2019-04-17 15:56:49 -04:00
Ash Wilson
9b40488652 Replace tests for scenarios I observed with tests for scenarios we want 2019-04-17 15:18:29 -04:00
Ash Wilson
1fc2f9b4ba Increase beforeEach, afterEach, and emitterEventPromise timeouts
This is to temporarily work around spikes in the window launch time.
2019-04-17 15:09:44 -04:00
Ash Wilson
9af51897f0 Override and restore ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT 2019-04-17 14:09:43 -04:00
Ash Wilson
b3ab30dcf5 Abstract "wait for window to finish loading" logic 2019-04-17 14:09:19 -04:00
Ash Wilson
b591f83447 Avoid binding expectOpenEvent into the closure 2019-04-17 13:09:56 -04:00
Ash Wilson
4f8de4bb0a Comment on launch scenarios that correspond to file manager launches 2019-04-17 13:09:29 -04:00
Ash Wilson
58c6292905 Tests for the remaining command-line cases 2019-04-17 10:24:03 -04:00
Ash Wilson
fc1af26e34 Show "incorrect window" banner for mismatched results 2019-04-17 10:23:22 -04:00
Ash Wilson
2f48ad097b Boolean logic is hard okay 2019-04-17 10:23:07 -04:00
Ash Wilson
bc4a22f97a Resolve root and editor paths during spec parsing for consistency 2019-04-17 10:22:51 -04:00
Ash Wilson
a53398daf7 Allow file references by basename or short path 2019-04-16 16:00:31 -04:00
Ash Wilson
f0dc842293 Distinguish between launch and open 2019-04-16 16:00:12 -04:00
Ash Wilson
58bd9bfa33 Don't open all precondition windows twice (oops) 2019-04-16 15:59:46 -04:00