Commit Graph

307 Commits

Author SHA1 Message Date
Christian Fritz
98f30825e5 tree-indenter: Applied fix introduced in sane-indentation for atom 1.40
- Four days of work to get those damn test to run again, just for a two character change to fix the tests.

- Now also added all other, minor changes to sane-indendation over the last five years since the PR for this change was opened.
2021-05-31 02:32:07 +00:00
Amin Yahyaabadi
0f04fb2a74 test: add test for conditionally loaded .node files 2021-03-06 20:00:57 -06:00
Amin Yahyaabadi
5b2c05a745
detect symbolic link packages
* detect symbolic link packages
2020-09-08 16:04:47 +03:00
Alexis King
15c7ea0c72 🐛 Recognize git worktree directories as valid git repositories
fixes #8168
2019-08-23 14:02:54 -05:00
Rafael Oleza
040d96ca1b Merge commit '677bbb7f0b8754787ff9e7bfab4602ba82e13b0b' into wl-deserialize-and-activate 2019-06-01 00:18:46 +02:00
Rafael Oleza
17aa985f4e Fix handling of binary files when using ripgrep scanner 2019-05-24 18:55:18 +02:00
Rafael Oleza
854471ffd8 Add missing fixture 2019-05-23 00:16:49 +02:00
Rafael Oleza
c3845dd902 Add proper multiline support to ripgrep scanner 2019-05-22 16:15:57 +02:00
Rafael Oleza
73e2b6033a Fix ripgrep scan implementation to pass all the tests 2019-05-21 11:55:53 +02:00
Rafael Oleza
0647a0044f Add context support to ripgrep-directory-searcher 2019-05-17 11:40:46 +02:00
Winston Liu
c8d3c7e4c0
Merge branch 'master' into wl-deserialize-and-activate 2019-05-15 16:21:15 -04:00
David Wilson
3bd2279d3c Make invalid JS file fail Babel spec again
This change uses a different JavaScript syntax to cause the "when a .js file
does not start with 'use babel'" spec to fail again after upgrading to Electron
3 / Node 10.3.0.  The previous generator syntax seems to be supported in the
version of V8 used by Node 10 so we now need to use the 'export default' syntax
to trigger an error.

I've verified that changing the first line of this file to 'use babel' causes
the file to load successfully, so it seems this new syntax is effective to
verify the desired behavior.
2019-05-06 20:24:29 +02:00
Jason Rudolph
c9e6d04e8c
Revert "Merge #18603 from atom/electron-3-0"
This reverts commit b92ae2ad04, reversing
changes made to d4fe5ccfeb.
2019-02-25 13:41:59 -05:00
David Wilson
8eccaf2d5d Make invalid JS file fail Babel spec again
This change uses a different JavaScript syntax to cause the "when a .js file
does not start with 'use babel'" spec to fail again after upgrading to Electron
3 / Node 10.3.0.  The previous generator syntax seems to be supported in the
version of V8 used by Node 10 so we now need to use the 'export default' syntax
to trigger an error.

I've verified that changing the first line of this file to 'use babel' causes
the file to load successfully, so it seems this new syntax is effective to
verify the desired behavior.
2019-01-18 15:13:24 -08:00
Winston Liu
852c54c026
Merge branch 'master' into wl-deserialize-and-activate 2019-01-17 10:36:06 -05:00
Max Brunsfeld
d88ae67a20 Update fixture package to use a tree-sitter grammar 2018-09-04 11:37:30 -07:00
Max Brunsfeld
760b38c54b Support a single scope name field on Tree-sitter grammars
* Remove the `legacyScopeName` field
* Remove the legacy scope name concept from the Config class
* Handle tree-sitter grammars and textmate grammars having the same 
scope names
2018-08-20 09:58:37 -07:00
Jason Rudolph
c74971e40c
Fix repository tests that fail when run in fork of atom/atom
Prior to this change, these tests assumed that the local repository is a
clone of atom/atom, and the tests (unintentionally) failed if the local
repository was a fork of atom/atom:

https://circleci.com/gh/marcomorain/atom-1/29

Instead of depending on the local clone of the atom repository for these
tests, this commit updates the tests to use one of the fixture
repositories. 😅
2018-07-27 09:40:38 -04:00
saadq
fc45af02ae allow the use of double slash flow comments 2018-03-21 18:07:16 -04:00
Max Brunsfeld
9762685106 Start work on loading tree-sitter grammars in GrammarRegistry 2017-11-30 09:31:08 -08:00
Wliu
c747711be5
Add specs for workspaceOpeners 2017-11-15 00:53:56 +01:00
Wliu
9a402392ab
Add specs 2017-11-14 00:13:58 +01:00
Indrek Ardel
0f89211d55 Prioritize first line matches over bundled/non bundled cirteria 2017-10-20 13:34:15 +03:00
Michelle Tilley
5e43084cd3
url -> URI 2017-10-17 15:23:10 -07:00
Michelle Tilley
eb4357ce87
Add tests for packages with URI handlers 2017-10-03 13:20:48 -07:00
Antonio Scandurra
c99ac52152 Fix folding for lines that contain a comment
In attempting to optimize the performance of `isFoldableAtBufferRow` in
3c87b74, we mistakenly introduced a bug that caused lines that contained
a comment but didn't start with one to not be foldable anymore.

With this commit we are restoring the previous behavior, thus only
disabling folding for lines that start with a comment (ignoring leading
whitespaces).
2017-08-17 14:28:30 +02:00
Ian Olsen
ddcf5460ed Merge pull request #14427 from atom/fb-hw-url-fix2
Fix the atom:// URL handler for real (with tests this time)
2017-05-24 08:41:43 -07:00
hansonw
e8cd4bf431 Fix the atom:// URL handler for real (with tests this time) 2017-05-16 11:51:54 -07:00
Thomas Johansen
ceb05f03e2 💚 Make the "invalid" Babel fixture throw
Due to the V8 upgrade we need to tune the fixture to make it throw.
Using a generator function does the trick 
2017-05-03 14:21:23 +02:00
Max Brunsfeld
2ed0724fc4 Remove unnecessary calls to ViewRegistry.getView 2017-04-05 16:50:04 -07:00
Nathan Sobo
4716ad8ef3 Merge pull request #13358 from atom/fb-mdt-initialize-hook
Add initialize() hook to packages
2016-12-01 01:53:43 -07:00
Matthew Dapena-Tretter
25518b9c8e Add initialize() hook to packages 2016-11-30 14:27:29 -08:00
Damien Guard
711d83925e
Project and Window-Event-Handler spec pass on Win32 2016-11-29 16:55:14 -08:00
Damien Guard
2486a122ac
Fix fixture that gets modified as part of a test. 2016-10-04 17:01:56 -07:00
Damien Guard
1a97f97a54
Specs runner dev tools should also be ctrl-shift-i on Linux/Windows 2016-10-04 15:26:24 -07:00
Max Brunsfeld
3758fe5646 Use fake directory provider in integration test for remote dirs
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-15 16:33:04 -07:00
Max Brunsfeld
3aaa738944 Activate atom.directory-provider services before deserialization
Signed-off-by: Nathan Sobo <nathan@github.com>
2016-09-14 13:26:03 -07:00
Max Brunsfeld
8702b4ca47 Remove 'Some textSome textSome textSome text' 2016-08-15 17:12:40 -07:00
Max Brunsfeld
4b0183d074 Remove extraneous TextEditor setter methods 2016-08-15 16:45:10 -07:00
Max Brunsfeld
cdc9bdea61 Use setter methods instead of config settings in TextEditor test 2016-07-11 17:03:44 -07:00
Leonard Lamprecht
3a1ad3fd40 Replace OS X and Mac OS with macOS 2016-06-18 15:33:08 +02:00
Damien Guard
7542a401ff BufferedProcess whole-string spec now cross-platform 2016-05-02 15:37:36 -07:00
joshaber
0541755ac8 Consistent indentation. 2016-04-26 09:49:38 -04:00
joshaber
e16e987e08 Give the fixture a remote 2016-04-26 09:46:04 -04:00
joshaber
f589bdd8d9 Add a remote to the fixture. 2016-04-26 09:22:38 -04:00
Koki Takahashi
fdac1e4663 🐛 Treat empty comment line as comment and add tests (Fix #4140) 2016-02-29 19:51:57 -07:00
Nathan Sobo
6292484c97 Always strip git+ prefix and .git suffix from package repository URLs
Previously, a guard based on the presence of the _id field (which is
inserted by npm during installation) prevented a regex replacement of
the git+ prefix on URLs. Now we always do this. Since the .git suffix
also causes problems and we’re removing that in packages, I now remove
that as well.
2016-02-29 17:30:03 -07:00
Max Brunsfeld
9c0aa629d7 Let packages define deserializers & view providers as main module methods 2016-02-10 14:28:57 -08:00
joshaber
563984a7b2 Test it. 2016-02-05 16:16:38 -05:00
Josh Abernathy
4d740d3346 Merge pull request #9213 from atom/dh-async-repo
Async Git Repository class
2016-01-15 16:17:41 -05:00