Nathan Sobo
bd68790a10
Cleanup stylesheets added during spec in afterEach
2014-03-19 21:51:08 -06:00
Nathan Sobo
f0a7663447
Recalculate line-height and char-width when stylesheets change
...
If either of these dimensions change, we request a display update for
the editor.
2014-03-19 21:37:26 -06:00
Nathan Sobo
2d26382510
Emit 'stylesheet-changed' from atom.themes
...
Whenever stylesheets are applied or removed.
2014-03-19 15:51:36 -06:00
Kevin Sawicki
7c17c99b9e
Update spec description
2014-03-19 10:05:34 -07:00
Kevin Sawicki
ff560bc3a3
Update spec to not be before whitespace
2014-03-19 10:05:34 -07:00
Kevin Sawicki
2e8c0234bb
Tweak spec description
2014-03-19 10:05:34 -07:00
Kevin Sawicki
8e62d772b3
Ignore leading whitespace when auto-indenting a newline
...
Refs atom/language-less#1
2014-03-19 10:05:34 -07:00
Cheng Zhao
6838ff8ea2
Merge pull request #1762 from atom/linux-build
...
Make Atom build on Linux
2014-03-19 01:40:11 +00:00
Kevin Sawicki
8aa2c40bbf
Don't capture whitespace group in comment patterns
...
This was causing corruption when uncommenting XML since the fact that
it was being captured was throwing off the index used into the match.
Closes atom/language-xml#3
2014-03-18 18:19:59 -07:00
Cheng Zhao
f2e5b480e1
Fix specs on Mac.
2014-03-18 16:32:34 +08:00
Cheng Zhao
8bf1464b64
Fix setting NODE_PATH in specs window.
2014-03-18 15:57:16 +08:00
Nathan Sobo
b26e0d42d5
Merge branch 'master' into ns-extract-keymap
2014-03-17 22:28:14 -06:00
Nathan Sobo
8ee4e927a1
Unspy setTimeout in an attempt to fix flaky spec
2014-03-17 22:27:26 -06:00
Nathan Sobo
3d28f957c7
Export Keymap from keymap-extensions
2014-03-17 13:05:47 -06:00
Nathan Sobo
8f2745c248
Remove old keymap-spec. It has been supplanted by the atom-keymap npm
2014-03-17 13:05:46 -06:00
Nathan Sobo
1c964d05f8
💄 spec helper's keydownEvent
2014-03-17 13:05:46 -06:00
Nathan Sobo
2dcbf7f751
Replace Keymap subclass with keymap-extensions
2014-03-17 13:05:46 -06:00
Nathan Sobo
067f73da38
Defend against jQuery-wrapped targets in keydownEvent spec helper
2014-03-17 13:05:46 -06:00
Nathan Sobo
8974cb5f34
Make a quick and dirty subclass of the Keymap from the npm
2014-03-17 13:05:46 -06:00
Kevin Sawicki
37d67e8a83
Add spec for dragging with editor hidden
2014-03-13 10:56:31 -07:00
Kevin Sawicki
2f8e67d679
Add event.which to 1 in more specs
2014-03-13 10:49:34 -07:00
Kevin Sawicki
22dc165a25
Set event.which to 1 in specs
2014-03-13 10:47:03 -07:00
Kevin Sawicki
864ab0c095
Use file path in save as dialog
...
Previously the dirname of the file path was used which caused the
save dialog to not be filled in with the current file name
Closes #1748
2014-03-12 18:41:50 -07:00
Kevin Sawicki
68c2c18d83
Don't allow the tab length to go below 1
...
Closes #1751
2014-03-12 18:00:11 -07:00
Kevin Sawicki
8cb66895f0
Check that activations events are present
...
Having an empty array, object, or string will now be treated
as no activation events.
This was reported as being confusing since people were just clearing
the array generated by the package generator but their packages weren't
activating.
2014-03-11 16:15:30 -07:00
Kevin Sawicki
d6433a67c8
Incluse JavaScript specs when loading suite
...
Closes #1615
2014-03-11 13:01:28 -07:00
probablycorey
945011f9e3
Add data to the same jquery object that is appended to the list.
...
Closes #1747
2014-03-11 11:20:03 -07:00
Kevin Sawicki
86cd7f7a01
Handle non-integer indentation level values
...
This was already occurring when using hard tabs but soft tabs still
had issues.
Refs atom/language-c#7
2014-03-10 18:45:18 -07:00
Kevin Sawicki
a79090c65a
Unfocus spec
2014-03-10 18:43:38 -07:00
Kevin Sawicki
86c720af81
Normalize all tabs, not just the first one
...
Refs atom/language-javascript#10
2014-03-10 17:57:10 -07:00
Nathan Sobo
4acfe11af1
Remove previous duplicate-line specs from editor-view-spec
2014-03-06 14:49:20 -07:00
Nathan Sobo
85824c5df6
Handle last buffer line in Editor::duplicateLines
2014-03-06 14:48:52 -07:00
Nathan Sobo
20a0c27111
Rename duplicate-line to duplicate-lines (but retain deprecated method)
...
Might as well make the name accurate while it's early.
2014-03-06 14:36:25 -07:00
Nathan Sobo
ce4ce55b29
Make outermostFoldsForBufferRowRange exclusive of end row
2014-03-06 12:52:27 -07:00
Nathan Sobo
d97a0a3324
Add DisplayBuffer::outermostFoldsInBufferRowRange
2014-03-06 12:36:42 -07:00
Nathan Sobo
aff37d1ae4
WIP: Add failing spec for duplicating folds when duplicating lines
2014-03-06 00:29:35 -07:00
Nathan Sobo
a0234d0cc6
Handle empty selections on folded lines
2014-03-06 00:07:59 -07:00
Nathan Sobo
8a77acb51e
Duplicate multiple selections and multiple lines; folds are broken
2014-03-05 23:29:28 -07:00
Nathan Sobo
690bbbd14c
💄 Fix indentation level of the last describe in editor-spec
...
I think I screwed it up in the last commit
2014-03-05 21:34:31 -07:00
Nathan Sobo
9c9bb2f192
💄 Flatten the structure of editor-spec
...
Previously there were 2 top-level describes:
"with an initial line option"
"with default options"
The default options describe contained almost all the specs, so this
commit just creates the editor again in a single spec about the
initialLine option and peels off a layer.
2014-03-05 21:32:11 -07:00
Nathan Sobo
23a40fe051
💄 Move specs for Editor::reloadGrammar to editor-spec
2014-03-05 21:23:39 -07:00
Kevin Sawicki
35ad8abf4c
Add expect for project state
2014-03-05 15:06:19 -08:00
Corey Johnson
75b6e94be1
Merge pull request #1699 from atom/cj-convert-keystrokes-using-shift
...
Converts keystrokes with alpha chars using shift
2014-03-05 15:00:42 -08:00
probablycorey
d0889cca31
Normalize keystrokes to use shift and the uppercase letter
...
`cmd-shift-l`, `cmd-L` and `cmd-shift-L` all normalize to `cmd-shift-L`
2014-03-04 17:42:32 -08:00
probablycorey
8b673c7adf
Refer to char instead of chars
2014-03-04 17:34:17 -08:00
probablycorey
4aa73968f0
Converts keystrokes with alpha chars using shift
...
e.g. cmd-shift-l would be converted to cmd-L
2014-03-04 17:04:06 -08:00
Nathan Sobo
06bc09951d
Fix position translation bug for wrapped lines with hard tabs
...
Fixes #1681
2014-03-04 17:55:53 -07:00
Nathan Sobo
e1bc62dae3
Add a spec for line wrapping in the presence of legacy scrollbars
2014-03-04 16:45:50 -07:00
Nathan Sobo
8522707bd2
Switch to .scrollbars-visible-always/when-scrolling class names
2014-03-04 10:50:45 -07:00
Nathan Sobo
0eac9d3e6f
Apply 'scrollbar-style-x' class to WorkspaceView
...
…where x is 'overlay' or 'legacy' depending on whether the scrollbars
are only visible when scrolling (overlay) or always visible (legacy).
This will allow us to style scrollbars in legacy mode without forcing
them to be visible in overlay mode.
2014-03-03 22:33:48 -07:00