Commit Graph

7069 Commits

Author SHA1 Message Date
Max Brunsfeld
b1f5583c4e Remove stray usages of atom.config in text-editor-spec 2016-07-12 11:31:03 -07:00
Max Brunsfeld
58ec44f8ec Move handling of nonWordCharacters setting into TextEditorRegistry 2016-07-12 11:30:41 -07:00
Max Brunsfeld
5167dbca6f Move handling of undoGroupingInterval to TextEditorRegistry 2016-07-11 17:47:40 -07:00
Max Brunsfeld
9ab474a673 Move handling of scrollPastEnd setting to TextEditorRegistry 2016-07-11 17:41:06 -07:00
Max Brunsfeld
7a50aa9f9f Move handling of auto indent settings to TextEditorRegistry 2016-07-11 17:37:51 -07:00
Max Brunsfeld
6f764f86cf Move handling of backUpBeforeSaving to TextEditorRegistry 2016-07-11 17:16:41 -07:00
Max Brunsfeld
cdc9bdea61 Use setter methods instead of config settings in TextEditor test 2016-07-11 17:03:44 -07:00
Max Brunsfeld
66c56d2a72 TextEditorRegistry: test skipping comments when guessing soft tabs 2016-07-11 17:02:03 -07:00
Max Brunsfeld
25035d8fce Remove some config usages from text editor spec 2016-07-11 13:52:05 -07:00
Max Brunsfeld
f327a4f95d Test that maintainConfig uses scoped settings 2016-07-11 13:50:38 -07:00
Max Brunsfeld
5acab853cd Remove all config observation from text editor 2016-07-11 12:43:18 -07:00
Max Brunsfeld
d91895961e Move more config observation out of text editor 2016-07-08 17:54:24 -07:00
Max Brunsfeld
eec1b70967 Start moving config observation out of editor into editor registry
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-07-08 17:41:59 -07:00
Nathan Sobo
bb1516ee77 🎨
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-07-06 12:58:07 -06:00
Nathan Sobo
a5613cd7e4 Convert text-editor-registry and tests to JS
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2016-07-06 12:54:30 -06:00
Antonio Scandurra
a5fdf3e18a Merge pull request #12008 from atom/as-ns-recreate-destroyed-repo
Recreate Repository if the same project is added after being removed
2016-06-21 11:40:49 +02:00
Antonio Scandurra
95932081b2 Recreate repository if the same project is added after being removed
:pear:ed with @nathansobo.
2016-06-20 17:06:50 +02:00
Leo Lamprecht
0ceacf5c13 OSX -> macOS 2016-06-20 11:29:10 +02:00
Leonard Lamprecht
3a1ad3fd40 Replace OS X and Mac OS with macOS 2016-06-18 15:33:08 +02:00
simurai
4c6899a1e1 Merge branch 'master' of https://github.com/atom/atom into sm-spec-suite 2016-06-18 15:29:59 +09:00
Antonio Scandurra
5391907c49 Merge pull request #11998 from atom/as-fix-janky-specs
Don't test CSON.readFileSync behavior twice (here and in atom/season)
2016-06-18 00:17:19 +02:00
Antonio Scandurra
bdce8d15ab Rely on CSON.readFileSync to test caching behavior 2016-06-17 11:04:08 +02: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
simurai
b1f0cbb134 Make Spec Suite less flickery 2016-06-11 10:46:10 +09:00
Damien Guard
43afb668c7 🎨 Remove fat-arrow Coffeescript linter warning 2016-06-07 17:20:09 -07:00
Wliu
c6d431bdf1 Merge branch 'master' into wl-update-language-javascript 2016-06-03 21:53:46 +00:00
Antonio Scandurra
2fb757791b Allow atom-pane to be shrunk independently of its contents' width 2016-05-30 14:49:29 +02:00
Antonio Scandurra
6c34844956 🐛 Don't try to recover the same file twice 2016-05-26 11:27:56 +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
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
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
e57b35f8de Merge branch 'master' into as-file-recovery-service 2016-05-24 19:16:31 +02:00
Antonio Scandurra
209e9d8d9c Add coverage for position: 'after' in cursor's state specs 2016-05-24 10:54:01 +02:00
Antonio Scandurra
c0bed9ab50 🐛 Enforce block decorations to be 'before' by default 2016-05-24 10:49:59 +02:00
Antonio Scandurra
75d4919489 Restore concurrency on renderer specs 2016-05-24 10:01:12 +02:00
Antonio Scandurra
7a12984af3 🔥 Unused requires on specs 2016-05-24 09:28:58 +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
858740cd5f 📝 Better description on spec 2016-05-24 08:32:29 +02:00
Antonio Scandurra
25fece4a1a 🎨 file-recovery-service-spec.js -> file-recovery-service.spec.js 2016-05-24 08:24:41 +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
Antonio Scandurra
97dd25d14f 💚 2016-05-24 08:10:48 +02:00
Antonio Scandurra
57195d7ba6 Write specs for FileRecoveryService 2016-05-23 21:10:04 +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
Antonio Scandurra
ad166db6c4 Don't use temp for integration tests socket creation 2016-05-17 13:56:57 +02:00