Commit Graph

8699 Commits

Author SHA1 Message Date
Max Brunsfeld
4f469feee1 Revert "Revert "Merge pull request #19165 from atom/mb-upgrade-tree-sitter-to-0-14-again""
This reverts commit e10adac427.
2019-04-16 14:25:18 -07:00
Max Brunsfeld
e10adac427 Revert "Merge pull request #19165 from atom/mb-upgrade-tree-sitter-to-0-14-again"
This reverts commit ce2e2117d8, reversing
changes made to 4ce00667b5.
2019-04-16 12:54:16 -07:00
Max Brunsfeld
b1c98000cd Make tree-sitter parsing synchronous in specs, like TextMate 2019-04-16 09:53:29 -07:00
Max Brunsfeld
8f44daf4ee Revert "Revert "Merge pull request #19060 from atom/mb-tree-sitter-0-14""
This reverts commit f861d89fd3.
2019-04-15 09:58:23 -07:00
Nathan Sobo
57d00b6f09
Merge pull request #18471 from Aerijo/comment-cursor-placement
Toggle comment cursor placement
2019-04-10 10:10:42 -06:00
Nathan Sobo
513a38bcea Unfocus test 🙈 2019-04-09 10:54:01 -06:00
Rafael Oleza
6b61f14c3b Wait until the editor is ready on application test 2019-04-09 16:00:47 +02:00
Rafael Oleza
dbe00f616a Fix atom-application tests
When closing a window with a file that does not exist, Atom opens a
dialog asking the users if they want to save the changes. This dialog
prevented the tests from finishing correctly.
2019-04-09 13:18:02 +02:00
Nathan Sobo
397d427568 Fix lint error 2019-04-08 17:16:50 -06:00
Nathan Sobo
6277cefa07 Clean up assertion style
I prefer to express only one assertion per line rather than &&-ing 
together multiple assertions into a condition. I also prefer to use 
equality assertions so that failure messages include more information 
about the actual and expected values.

I used nested scope blocks so we could re-define the `range` constant in 
a local scope without needing to mutate a variable across unrelated 
tests.
2019-04-08 16:57:35 -06:00
Nathan Sobo
47368136d8 Fix syntax error that caused test not to run and some problems with test 2019-04-08 16:45:34 -06:00
Nathan Sobo
218086d379 Merge branch 'master' into comment-cursor-placement 2019-04-08 16:19:25 -06:00
Max Brunsfeld
f861d89fd3 Revert "Merge pull request #19060 from atom/mb-tree-sitter-0-14"
This reverts commit 386b153878, reversing
changes made to 5a4cfeb12c.
2019-04-08 10:08:02 -07:00
Rafael Oleza
e0755959da
Merge pull request #19116 from atom/test-build
Make sure that Atom does not get autoupdated when running main process tests
2019-04-08 16:01:30 +02:00
Rafael Oleza
3f11d71dc0 Make sure that Atom does not get autoupdated when running main process tests 2019-04-08 14:09:15 +02:00
Max Brunsfeld
386b153878
Merge pull request #19060 from atom/mb-tree-sitter-0-14
Update tree-sitter to v0.14.0
2019-04-07 14:26:11 -07:00
Rafael Oleza
7ad8976a00 Do not check for order of windows in test
The order is not deterministic on Windows, since it depends on focus
state
2019-04-05 17:13:53 +02:00
Rafael Oleza
df54e900d5 Add test to ensure that the piping logic works as expected 2019-04-05 17:13:53 +02:00
Rafael Oleza
f04a00ac2d Remove --socket-path CLI argument 2019-04-04 17:55:58 +02:00
Rafael Oleza
2656d4a846
Merge pull request #19058 from rafeca/fix-reopen-project
Fix reopen project when there are no open windows
2019-03-27 16:21:45 +01:00
Max Brunsfeld
71200e8edd ⬆️ tree-sitter to 0.14.0 2019-03-26 17:30:32 -07:00
Rafael Oleza
4fd800328a Do not delete global scope setting when resetting user settings 2019-03-26 19:19:59 +01:00
Rafael Oleza
9f453e64fe Fix reopen project when there are no open windows 2019-03-26 17:01:38 +01:00
Ash Wilson
e88e06e572
Whitespace I guess 2019-03-13 15:19:07 -04:00
Ash Wilson
2ced6c8d63
Symlink or copy packages from the user's real ATOM_HOME 2019-03-13 15:18:58 -04:00
Rafael Oleza
ec705399e6 Remove uneeded methods from async-spec-helpers modules 2019-03-01 12:05:21 +01:00
Rafael Oleza
67afbe6097 Stop using promisifySome 2019-03-01 12:05:21 +01:00
Rafael Oleza
a93808d1a8 Always use global it, beforeEach and afterEach methods 2019-02-28 20:39:21 +01:00
Rafael Oleza
2dd2c299b3 Keep unneeded block in TextEditor spec as it's a common pattern 2019-02-28 19:30:03 +01:00
Rafael Oleza
ccfd761a06 Fix linting issue after rebase 2019-02-28 19:30:03 +01:00
Rafael Oleza
6c46cf9243 Fix remaining linter issues 2019-02-28 19:30:03 +01:00
Rafael Oleza
cd302135f0 Fix undefined variables from specs 2019-02-28 19:30:03 +01:00
Rafael Oleza
d7d6d0838f Remove unused vars from specs 2019-02-28 19:30:03 +01:00
Rafael Oleza
c35ec012b4 Run prettier on spec/ folder 2019-02-28 19:30:03 +01:00
Rafael Oleza
7876e04e97 Override global jasmine spec functions
Currently, if a spec uses the global `it` function on an async test,
that test will always pass (since the jasmine version checked in Atom
does not natively support tests that return promises). This can be
confusing since the test behaviour is different between the
async-test-helpers methods and the global ones.

By overriding the global functions, we'll also be able to remove all the
imports from async-test-helpers since they won't be needed anymore.

More info: https://github.com/atom/atom/pull/18896#discussion_r260396102
2019-02-28 15:15:08 +01: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
Lee Dohm
d07d854986
Merge pull request #16558 from lgeiger/async-git
Add async implementation of GitRepositoryProvider.repositoryForDirectory
2019-02-21 09:29:53 -08:00
Ash Wilson
402fa903fd
Merge pull request #18802 from atom/aw/jasmine-junit-xml
Report test result metadata to Azure DevOps
2019-02-16 11:02:20 -05:00
Ash Wilson
13a6d43e61
Remove stdout noise 2019-02-15 16:10:21 -05:00
David Wilson
bf3502c4db Fix "Open Folder" menu item on Windows 2019-02-15 09:54:44 -08:00
Ash Wilson
aa02ac8daa
Script to post-process JUnit XML output 2019-02-15 10:01:15 -05:00
Ash Wilson
fea3286ca8
Prefix test descriptions with TEST_JUNIT_RUN 2019-02-12 11:59:11 -05:00
David Wilson
37ae5dde5a Add a test for folder open behavior on after all windows have closed 2019-02-07 14:30:51 -08:00
Ash Wilson
584a1a317e
Subclass the right class 2019-02-06 21:31:58 -05:00
Ash Wilson
d99f2e6e79
Subclass the Jasmine JUnit reporter to touch up the spec descriptions 2019-02-06 21:11:34 -05:00
Ash Wilson
97df72a3c1
Configure JUnit reporter to treat TEST_JUNIT_XML_PATH as a single file 2019-02-06 15:56:28 -05:00
Ash Wilson
3b2f4bebcf
Write to stdout instead of stderr 2019-02-06 11:06:53 -05:00
Ash Wilson
702d5941bb
Merge branch 'master' of github.com:atom/atom into aw/jasmine-junit-xml 2019-02-06 10:14:32 -05:00
Ash Wilson
5945eca148
Configure JUnit noisily 2019-02-05 21:31:19 -05:00
Ash Wilson
8e6d8334cb
Use a temporary directory for ATOM_HOME in tests 2019-02-05 13:35:09 -05:00