Commit Graph

5389 Commits

Author SHA1 Message Date
Kevin Sawicki
5272584d29 Merge pull request #6359 from atom/as-fix-linux-failing-specs
Fix some of the specs which fail on Linux
2015-04-14 11:07:58 -07:00
Antonio Scandurra
6190fe00d7 🎨 Avoid string interpolation in require 2015-04-14 19:34:43 +02:00
Antonio Scandurra
304b959ca8 🎨 Use tags to exclude spec on Linux 2015-04-14 19:34:04 +02:00
Ben Ogle
cfb28d1c2e Merge pull request #6367 from atom/bo-follow-symlinks
Default `core.followSymlinks` to true
2015-04-14 10:22:02 -07:00
Antonio Scandurra
1c8cf4390c Rename to safe-clipboard
...and use remote only on Linux renderer processes.
2015-04-14 10:50:09 +02:00
Ben Ogle
c13dce2d8f Fix spec 2015-04-13 18:32:01 -07:00
Ben Ogle
2872000d13 Fix paragraph computation in blocks of single line comments.
Closes #6050

Closes #5963
2015-04-13 16:26:24 -07:00
Sean Lee
74caf89dd1 🐛 fix rowRangeForParagraphAtBufferRow using \S 2015-04-13 15:46:27 -07:00
Antonio Scandurra
4cb7bde4a6 💚 Fix race condition on window-spec
...caused by an afterEach block which was called before the SUT.
2015-04-13 16:59:29 +02:00
Antonio Scandurra
87972caf1e 🐧 Disable failing spec 2015-04-13 16:24:22 +02:00
Antonio Scandurra
c4205e36a6 💚 Use a serif font to make sure char widths change 2015-04-13 14:32:40 +02:00
Antonio Scandurra
106f9fdf2e Use src/native-clipboard in atom-application 2015-04-13 14:08:43 +02:00
Antonio Scandurra
8daca6a63b 🐧 💚 Humanize keystrokes in specs 2015-04-13 12:24:25 +02:00
Antonio Scandurra
16dbb7d0bb 🐧 💚 Mock native clipboard appropriately 2015-04-13 12:12:03 +02:00
Kevin Sawicki
4160a8c239 Merge pull request #6230 from mnquintana/coffeelint-plus
Lint for more styleguide errors
2015-04-08 12:07:23 -07:00
Machiste Quintana
adbd539302 Revert 👕 2015-04-08 14:36:00 -04:00
Machiste Quintana
ec11c89a74 Revert 👕 for spec fixtures 2015-04-07 19:24:29 -04:00
Max Brunsfeld
c7a5ebf725 Merge pull request #6291 from atom/mb-rename-add-root-folder
Rename 'add-root-folder' -> 'add-project-folder'
2015-04-07 12:30:37 -07:00
Max Brunsfeld
f39c67411a Rename 'add-root-folder' -> 'add-project-folder' 2015-04-07 12:10:12 -07:00
Kevin Sawicki
06b8195fb8 Remove template config.cson file
This old template file had several problems:

  * The entries in this file are already the schema defaults so they
    would get unset anyway when initially loaded
  * The file was in the old format that didn't have scope selectors
  * A race condition could occur when the file was copied, inited, and written
    to all during the very first run of Atom.

Closes #6226
2015-04-07 11:47:36 -07:00
Antonio Scandurra
a244c0fa07 🔥 Delete useless line in spec 2015-04-07 12:30:51 +02:00
Antonio Scandurra
59a5dc42a8 Merge branch 'master' into as-fix-delete-line 2015-04-07 12:12:36 +02:00
Machiste Quintana
5d2392ea67 👕 Fix new coffeelint errors 2015-04-06 23:59:54 -04:00
Kevin Sawicki
e02e8c91a6 Use TextEditor::onDidChangeCursorPosition in spec 2015-04-06 16:29:12 -07:00
Kevin Sawicki
9b7870d503 Snapshot deprecations around calls to Project::eachBuffer 2015-04-06 16:22:31 -07:00
Kevin Sawicki
50d9fee0d3 Use Project::onDidAddBuffer 2015-04-06 16:21:09 -07:00
Kevin Sawicki
188b2e5a74 Report core deprecations in specs 2015-04-06 15:55:51 -07:00
Max Brunsfeld
5df56fc50a Add workspace element command for 'add root folder' 2015-04-06 15:19:40 -07:00
Max Brunsfeld
decab183b7 Fix screen/buffer range error in paragraph cursor motions 2015-04-03 10:34:21 -07:00
Antonio Scandurra
42521900e8 📝 Improve naming 2015-04-03 18:10:43 +02:00
Antonio Scandurra
1cf5822d20 Merge intersecting selections by row before deleting lines 2015-04-03 18:06:28 +02:00
Antonio Scandurra
544f3e1af2 Merge pull request #6167 from FoldingText/upstream
Clip positions above the first row
2015-04-02 19:52:55 +02:00
Antonio Scandurra
21df0d0401 Use component.measureDimensions() 2015-04-02 19:06:41 +02:00
Jesse Grosjean
82da0865bc Merge branch 'master' of https://github.com/atom/atom into upstream 2015-04-02 12:23:03 -04:00
Antonio Scandurra
b3bdad084f Always mutate selections in order 2015-04-02 16:35:26 +02:00
Antonio Scandurra
44d88e082c 🐛 Always copy selections in order 2015-04-02 16:28:22 +02:00
Ben Ogle
dff2453b65 Attempt to fix spec 2015-04-01 18:05:17 -07:00
Ben Ogle
44d1302402 Fix text-editor-component spec 2015-04-01 17:41:00 -07:00
Ben Ogle
48c05210fa Remove specs from text-editor-component 2015-04-01 17:41:00 -07:00
Ben Ogle
48a06868c8 Add specs from the text-editor-component 2015-04-01 17:41:00 -07:00
Ben Ogle
bed09cf0ef Presenter positions overlays when the overlay doesn’t have a size
Fix presenter specs
2015-04-01 17:41:00 -07:00
Ben Ogle
32572c0106 Add ViewRegistry::pollAfterNextUpdate
Closes #6196
2015-04-01 17:41:00 -07:00
Ben Ogle
b0794bbb68 Move the overlay calculation into the presenter. 2015-04-01 17:40:59 -07:00
Ben Ogle
01905ae55b Add specs for margin handling 2015-04-01 17:40:59 -07:00
Ben Ogle
6b5a74e3b6 Update specs for overlay rendering 2015-04-01 17:40:59 -07:00
Jesse Grosjean
409775b53e Improved specs for clipping pixel positions above/below display buffer 2015-04-01 12:39:22 -04:00
Jesse Grosjean
b067a6175f add screenPositionForPixelPosition spec 2015-03-30 13:52:28 -04:00
Nikolaus Wittenstein
b28ee92896 Add tests for DisplayBuffer::screenPositionForBufferPosition around soft tabs
This makes sure that a buffer position in the middle of a soft tab will
correctly clip to the closest edge by default.
2015-03-29 19:43:25 -04:00
Nikolaus Wittenstein
5a3f2035a1 Replace skipAtomicTokens with clip
When clipping a screen position, callers used to have to pick between
clipping to the left edge or the right edge when the position was in the
middle of an atomic token. This change allows them to choose the closest
edge, and makes this the default.

This makes selecting hard tabs (or any other atomic tokens) work in a
similar manner as in other text editors; that is, when clicking near
the middle of a tab, the insertion point will move to the closest edge
rather than the left edge.
2015-03-29 19:43:25 -04:00
Nikolaus Wittenstein
372fb49c88 TokenizedLine::screenColumnForBufferColumn calculates more accurately
screenColumnForBufferColumn used to break only if the current column
was strictly greater than the target column. This commit changes it so
it breaks when greater or equal, which is how bufferColumnForScreenColumn
works.

This also adds some unit tests for screenColumnForBufferColumn's
interactions with hard tab characters.
2015-03-29 19:43:25 -04:00