Commit Graph

14525 Commits

Author SHA1 Message Date
Antonio Scandurra
89f6604f91 Merge pull request #11994 from atom/ns-allow-test-directory
Make interactive package tests work with a top-level 'test' directory
2016-06-17 11:15:48 +02:00
Nathan Sobo
07a19df22c Make interactive test running work with ‘test’ directory
In addition to ‘spec’. I hate the word ‘spec’.
2016-06-16 16:28:11 -06:00
Nathan Sobo
8a3d5f8534 Use preferred line length as a *maximum* for soft wrapping
...if the softWrapAtPreferredLineLength config setting is enabled.
2016-06-16 08:42:30 -06:00
Lee Dohm
c7e3b0c728 📝 Update old docs links to point to Flight Manual 2016-06-15 08:57:27 -07:00
Sam Hunter
2d68c49274 Only spec window's web view should force focus 2016-06-12 23:20:43 -07:00
Sam Hunter
2daa8d60f4 Fix WebView focus
This code is needed to automatically focus the webview when it is blurred
2016-06-12 23:16:26 -07:00
Sam Hunter
0f673ea884 Remove workaround for old Windows bug
The code removed is no longer needed as it was fixed in this issue of atom-shell

https://github.com/electron/electron/issues/380
2016-06-10 23:49:14 -07:00
Drew Chandler
170bc17657 Fix DownloadingState typo 2016-06-07 22:06:08 -07:00
Damien Guard
ea68cfe290 Enable copy shortcut on specs window 2016-06-01 16:08:29 -07:00
Antonio Scandurra
c8e742809b Don't set an explicit width for LinesComponent 2016-05-30 15:06:36 +02:00
Antonio Scandurra
8355e7fe72 Use fs.copyFileSync for buffered copy 2016-05-26 19:06:15 +02:00
Antonio Scandurra
5e0e65b2e0 Merge branch 'master' into as-file-recovery-service 2016-05-26 12:01:50 +02:00
Antonio Scandurra
df263a2cb1 Return early when a recovery file can't be stored 2016-05-26 11:39:05 +02:00
Antonio Scandurra
6c34844956 🐛 Don't try to recover the same file twice 2016-05-26 11:27:56 +02:00
Antonio Scandurra
aefcbcda47 🔥 Remove unneeded WeakSet 2016-05-25 17:19:59 +02:00
Antonio Scandurra
d8564add7a Be a little more defensive when retaining/releasing recovery files 2016-05-25 17:02:02 +02:00
Drew Noel
37086c6c09 Use proper coffeescript style 2016-05-25 10:57:51 -04:00
Drew Noel
92df095137 Fix uncaught exception when open file dialog is cancelled 2016-05-25 10:57:51 -04:00
Antonio Scandurra
8733b52992 🔥 Extra imports 2016-05-25 15:56:14 +02:00
Antonio Scandurra
3f8f3c95a8 🔥 Remove extra comma 2016-05-25 15:55:36 +02:00
Antonio Scandurra
49a603a873 Show also a message box when recovery is not successful 2016-05-25 15:54:39 +02:00
Antonio Scandurra
8ba275a75d 🎨 Move RecoveryFile down 2016-05-25 15:47:12 +02:00
Antonio Scandurra
c2b01d54b8 Make coupling looser between the recovery service and the windows 2016-05-25 15:46:37 +02:00
Antonio Scandurra
1a7858c9f1 Log a more informative message when cannot recover a file 2016-05-25 15:15:53 +02:00
Antonio Scandurra
a2a734a372 Generate readable recovery filenames 2016-05-25 14:19:39 +02:00
Antonio Scandurra
30307231e6 👕 Fix linting issues 2016-05-25 14:05:09 +02:00
Antonio Scandurra
3ce7d0a974 Merge branch 'master' into as-file-recovery-service 2016-05-25 14:04:16 +02:00
Antonio Scandurra
c8fae110e7 Handle recovery when many windows save the same file simultaneously 2016-05-25 14:01:36 +02:00
Antonio Scandurra
3b4c1015cc Forget window when it gets closed 2016-05-25 11:54:09 +02:00
Antonio Scandurra
5e3f343e41 Merge branch 'master' into as-main-process-test-runner 2016-05-25 11:03:10 +02:00
Antonio Scandurra
df0b3dedd7 browser -> main-process 2016-05-25 11:02:29 +02:00
Antonio Scandurra
1817c79a53 Run tests after the application is ready 2016-05-25 10:57:40 +02:00
Antonio Scandurra
b84feeb853 Emit {will,did}SavePath events synchronously 2016-05-25 00:11:30 +02:00
Antonio Scandurra
e57b35f8de Merge branch 'master' into as-file-recovery-service 2016-05-24 19:16:31 +02:00
Antonio Scandurra
c0bed9ab50 🐛 Enforce block decorations to be 'before' by default 2016-05-24 10:49:59 +02:00
Antonio Scandurra
152c28a0e9 Merge branch 'master' into as-file-recovery-service 2016-05-24 10:07:30 +02:00
Antonio Scandurra
48c5db5e88 Use args.resourcePath instead of args.devResourcePath 2016-05-24 09:59:37 +02:00
Antonio Scandurra
4f1efe6ef6 👕 Fix linter errors 2016-05-24 09:28:00 +02:00
Antonio Scandurra
c7f4b33eb8 Emit informative warning when a file can't be recovered 2016-05-24 09:04:06 +02:00
Antonio Scandurra
62d48c64ea Add --main-process flag to run specs in the main process
…so that we can write unit tests for code in the main process. Below a
list of conventions we'll be adopting:

1. Use mocha as the test framework.
2. Use chai as the assertion library.
3. Name specs `foo-bar.spec.js`, to prevent the renderer process from
running specs written fro the main process e.g. when calling
`atom --test spec`.
4. Write specs in ES6.

Although somewhat inconsistent with the conventions we use for renderer
process specs, this will hopefully be a first step towards migrating our
entire Jasmine 1.3 test suite to a more modern environment.
2016-05-24 08:23:27 +02:00
simurai
8710096cfe Merge pull request #11804 from atom/sm-wrap-guide-note
Add a note how to hide the wrap-guide
2016-05-24 10:05:33 +09:00
Lee Dohm
2cfc4ee4e6 Merge pull request #11792 from Connormiha/object-assing-native
replace _.extend in favor of Object.assign
2016-05-23 16:01:27 -07:00
Lee Dohm
ea94f69051 Make the wording more clear and bold the Note 2016-05-23 15:20:13 -07:00
Antonio Scandurra
57195d7ba6 Write specs for FileRecoveryService 2016-05-23 21:10:04 +02:00
Antonio Scandurra
ca32c1370f 🔥 Unnecessary variable assignments 2016-05-23 19:25:28 +02:00
Antonio Scandurra
770199c76c 🎨 event.sender -> window 2016-05-23 19:19:48 +02:00
Antonio Scandurra
b58ce49d0d Create FileRecoveryService to restore corrupted files after a crash 2016-05-23 18:50:49 +02:00
Antonio Scandurra
de599f9c66 Make dialog asynchronous when a renderer process crashes
…so that other event handlers have the chance to execute even if the
user doesn't choose an option in the message box. This will allow us to
recover files when a window crashes.
2016-05-23 18:39:23 +02:00
Antonio Scandurra
049321a498 🐛 🔥 Remove double subscription to the same buffer 2016-05-23 18:37:47 +02:00
Antonio Scandurra
ef3ab03d28 Emit {will,did}SavePath on ipcMain before/after a buffer is saved 2016-05-23 18:37:26 +02:00