Commit Graph

9024 Commits

Author SHA1 Message Date
Max Brunsfeld
fa100866cb
Merge pull request #19172 from atom/mb-tree-sitter-upgrade-test-travis
Try upgrading Tree-sitter for a third time
2019-05-06 22:33:20 -07:00
Max Brunsfeld
59319d639a Update test to expect new rendering of missing tree-sitter nodes 2019-05-06 14:50:38 -07:00
David Wilson
78f354ad3a Update StyleManager specs to address deprecated ::shadow selectors
As of Chromium 63, ::shadow CSS selectors have been fully removed:

https://developers.google.com/web/updates/2017/10/remove-shadow-piercing

As a result, any usage of ::shadow in a stylesheet seems to get removed as soon
as the stylesheet is applied to an HTMLStyleElement.  Since we have a couple of tests
that expect ::shadow selectors to be present, we must remove those expectations
since those selectors do not appear any longer.
2019-05-06 20:27:27 +02:00
David Wilson
614d3e150a Use fs.renameSync in Workspace spec to fix test failure 2019-05-06 20:25:52 +02: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
9921d1cef3
Unfold (if needed) when opening file at specific line 2019-05-06 11:24:26 -04:00
Rafael Oleza
0d80191516
Merge pull request #19257 from atom/increase-timeout-file-recovery-test
Increase the timeout for the FileRecoveryService tests
2019-05-06 11:39:16 +02:00
Winston Liu
d8559d37a2
Add 'it' in front of spec descriptions 2019-05-04 12:29:52 -04:00
Nathan Sobo
5bfbdd2bce Stop all watchers before attempting to replace directory with file
I think that the notify subprocess might be holding a lock on the 
watched directory on Windows.
2019-05-03 14:11:59 -06:00
Nathan Sobo
1ec8e7730b Work around 8.3 path issue on Azure Windows 2019-05-03 10:46:33 -06:00
Rafael Oleza
fb79283d15 Increase the timeout for the FileRecoveryService tests 2019-05-03 17:27:48 +02:00
Nathan Sobo
f8d7c9cbce Use async/await in test to see if it fixes Windows failures on CI 2019-05-02 13:35:04 -06:00
Nathan Sobo
508b56da28 Remove logic supporting dynamic switching of path watcher backends
The logic is pretty complex and I don't want to take the time to 
integrate @atom/notify with it. I left a bunch of stuff commented out in 
this commit just in case these changes break the build. I'll do another 
pass to delete commented code once we go green.
2019-05-02 07:40:38 -06:00
Nathan Sobo
89a7aa851b Default to @atom/notify for file system notifications
There's still some work to do to make this work on Linux and support 
switching between notification back-ends.
2019-05-02 07:40:37 -06:00
Jason Rudolph
2cf285bc36
Merge #19175 from UziTech/patch-7: await uriHandler 2019-05-01 16:23:34 -04:00
Ash Wilson
3ee3641525
Merge pull request #19247 from atom/aw/drag-and-drop
Always use target window for drag-and-drop
2019-05-01 12:44:43 -04:00
Ash Wilson
e2d5143b53
Use the "here" option to open for drag-and-drop 2019-05-01 09:05:46 -04:00
Ash Wilson
61377b843c
Support a "here" option in the "open" IPC message handler 2019-05-01 09:02:02 -04:00
Rafael Oleza
3fcdcde74d Use async randomBytes API to speedup Windows startup 2019-04-30 19:14:54 +02:00
Rafael Oleza
2a7ddf0d22
Merge pull request #19234 from atom/improve-flaky-test
Disable external events from workspaceElement test
2019-04-30 11:01:55 +02:00
Rafael Oleza
7e4dfa9417
Merge pull request #13760 from atom/wl-open-empty-editor-as-pending
Open empty editor as a pending pane item
2019-04-29 15:54:25 +02:00
Rafael Oleza
4e2e820a6c Disable external events from workspaceElement test 2019-04-29 15:09:23 +02:00
Ash Wilson
e368d78d27
Main process test for dev mode and benchmark windows 2019-04-28 17:21:37 -04:00
Winston Liu
dbb6c7b1b6
Merge branch 'master' into wl-open-empty-editor-as-pending 2019-04-27 00:25:00 -04:00
Rafael Oleza
165a297d31 Merge branch 'master' into autoFocus-element 2019-04-26 20:23:09 +02:00
Ash Wilson
c8beb6ffab
Open loaded window options *first* 2019-04-24 15:22:32 -04:00
Ash Wilson
a53addbf78
Update AtomWindow::projectRoots synchronously on openLocations() 2019-04-24 15:04:59 -04:00
Ash Wilson
f1e0843473
Don't report missing project folder errors twice 2019-04-24 11:34:36 -04:00
Ash Wilson
f4be123137
Test a new application.json schema and our handling of the old one 2019-04-24 10:17:20 -04:00
Ash Wilson
a0e9bb785f
Merge pull request #19203 from atom/aw/reopen-projects
"Reopen projects" in a new window
2019-04-23 17:35:13 -04:00
Ash Wilson
213f3b28b3
Rework and test IPC events that create windows 2019-04-23 11:18:53 -04:00
Tony Brix
7170ab8ebd lint 2019-04-23 09:24:30 -05:00
Ash Wilson
758fd9d75c
Merge pull request #19169 from atom/aw/launch-it
Improve launch behavior
2019-04-22 20:39:28 -04:00
Jason Rudolph
5055be06ca
Update spec/main-process/atom-application.test.js
Co-Authored-By: smashwilson <smashwilson@github.com>
2019-04-22 16:00:28 -04:00
Ash Wilson
ab490a064a
Test for restoring windows over directories and files 2019-04-19 18:07:18 -04:00
Ash Wilson
c719dc8aa2
Test empty command-line cases 2019-04-19 17:37:23 -04:00
Ash Wilson
96e6403573
Remove unused forceAddToWindow 2019-04-19 17:36:33 -04:00
Nathan Sobo
bca3e5bcfd
Merge pull request #18499 from Aerijo/content-regex
Support contentRegex for TextMate grammar
2019-04-19 14:58:58 -06:00
Ash Wilson
8126a136cd
Read hasOpenFiles to determine whether or not the initial editor should open 2019-04-19 15:50:24 -04:00
Ash Wilson
cc1ddf1011
Use hasOpenFiles to flag a window that will receive openLocations() 2019-04-19 15:50:03 -04:00
Ash Wilson
190875873e
📝 Document the LaunchScenario stuff 2019-04-19 15:07:33 -04:00
Ash Wilson
53188eb19d
Distinct test names 2019-04-19 14:33:00 -04:00
Nathan Sobo
5a6f93d1c3 Fix lint errors 2019-04-19 12:03:40 -06:00
Ash Wilson
1a123c06ef
Line separators are hard okay 2019-04-19 13:59:30 -04:00
Ash Wilson
97c4038906
Fix problems with _dimensions being modified in-place 2019-04-19 13:10:17 -04:00
Nathan Sobo
51d97a16d8 Add test for content regexes in first-mate grammars 2019-04-19 10:55:34 -06:00
Ash Wilson
e8cc4aa421
Call removeWindow() explicitly to simulate a window close 2019-04-19 12:55:03 -04:00
Ash Wilson
b9268c703c
URL pathnames use /, not path.sep 2019-04-19 12:53:30 -04:00
Ash Wilson
c4f3b519d3
Replace the AtomApplication test suite 2019-04-19 12:07:21 -04:00
Ash Wilson
3645cef518
More marking stuff covered 2019-04-19 12:06:09 -04:00
Ash Wilson
a3a44006be
Tests for URL handling, no-window actions on macOS, and app re-use 2019-04-19 12:06:01 -04:00
Ash Wilson
37e471b315
Omit missing windows from the shorthand assertion summary 2019-04-19 12:05:16 -04:00
Ash Wilson
91dce7faba
Track created windows in the createWindow stub 2019-04-19 12:04:51 -04:00
Ash Wilson
af28d3c248
Pass atom:// URL arguments through directly 2019-04-19 12:04:17 -04:00
Ash Wilson
1ba571becd
Create and restore ATOM_HOME for the socket stuff 2019-04-19 12:03:58 -04:00
Ash Wilson
ad2b431c5c
Stub trivial isSpecWindow method 2019-04-19 12:03:22 -04:00
Ash Wilson
18ec08735e
Don't require locationsToOpen in load settings 2019-04-19 12:03:04 -04:00
Ash Wilson
e0b495c36a
Marking off the test cases I've covered in the new suite 2019-04-18 22:58:17 -04:00
Ash Wilson
6f888484f0
Left in a console 👀 2019-04-18 22:58:00 -04:00
Ash Wilson
3f942f83de
Port over a bunch of AtomApplication tests 2019-04-18 22:57:27 -04:00
Ash Wilson
525d8b710c
Touch up core.openEmptyEditorOnStart tests 2019-04-18 21:23:10 -04:00
Ash Wilson
b0f4477986
Test behavior for collapsing new paths into restored ones 2019-04-18 21:13:56 -04:00
Ash Wilson
b1d6e42aa9
Add preserveFocus flag to keep main process tests from stealing focus 2019-04-18 21:10:41 -04:00
Nathan Sobo
d4d14a402c
Merge pull request #19135 from atom/ns-jasmine-retries
Add ability to retry flaky Jasmine tests
2019-04-18 17:32:10 -06:00
Ash Wilson
e782cea2bf
Test for window restoration on launch, not open 2019-04-18 17:13:03 -04:00
Ash Wilson
c0a39e04e2
Tests for restoration of previous window state 2019-04-18 17:06:42 -04:00
Ash Wilson
e35510e928
Stub the storage folder application.json read 2019-04-18 17:05:41 -04:00
Ash Wilson
1a48b987ca
Allow LaunchScenario::launch() to accept an existing app 2019-04-18 17:05:25 -04:00
Ash Wilson
b854a698f7
Dump a shorthand description of the actual windows on assert failure 2019-04-18 17:05:08 -04:00
Ash Wilson
109fb1116b
Make the stubbed openLocations() sync for simplicity 2019-04-18 17:04:37 -04:00
Ash Wilson
097906c23f
AtomWindow tests 2019-04-18 16:20:26 -04:00
Ash Wilson
6d4ba52454
Update AtomEnvironment specs with new location keys 2019-04-18 16:20:08 -04:00
Ash Wilson
8f4c24b4e5
initialPaths and representedDirectoryPaths renaming 2019-04-18 16:19:23 -04:00
Ash Wilson
db2f8302bf
Bring the stub AtomWindow up to date 2019-04-18 16:19:06 -04:00
Ash Wilson
efeb2cdb0a
stat locations in parsePathToOpen() 2019-04-18 16:11:02 -04:00
Ash Wilson
f66002e193
Create stubbed AtomWindows instead of real ones in app tests 2019-04-18 10:51:25 -04:00
Tony Brix
e0445d7078 better error message 2019-04-17 23:43:47 -05:00
Tony Brix
e5be4a03f4 fix uriHandler tests 2019-04-17 22:37:58 -05:00
Ash Wilson
87a4213b6a
Rewrite AtomApplication::openPaths() logic to find existing windows 2019-04-17 15:56:49 -04:00
Ash Wilson
9b40488652
Replace tests for scenarios I observed with tests for scenarios we want 2019-04-17 15:18:29 -04:00
Ash Wilson
1fc2f9b4ba
Increase beforeEach, afterEach, and emitterEventPromise timeouts
This is to temporarily work around spikes in the window launch time.
2019-04-17 15:09:44 -04:00
Ash Wilson
9af51897f0
Override and restore ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT 2019-04-17 14:09:43 -04:00
Ash Wilson
b3ab30dcf5
Abstract "wait for window to finish loading" logic 2019-04-17 14:09:19 -04:00
Ash Wilson
b591f83447
Avoid binding expectOpenEvent into the closure 2019-04-17 13:09:56 -04:00
Ash Wilson
4f8de4bb0a
Comment on launch scenarios that correspond to file manager launches 2019-04-17 13:09:29 -04:00
Ash Wilson
58c6292905
Tests for the remaining command-line cases 2019-04-17 10:24:03 -04:00
Ash Wilson
fc1af26e34
Show "incorrect window" banner for mismatched results 2019-04-17 10:23:22 -04:00
Ash Wilson
2f48ad097b
Boolean logic is hard okay 2019-04-17 10:23:07 -04:00
Ash Wilson
bc4a22f97a
Resolve root and editor paths during spec parsing for consistency 2019-04-17 10:22:51 -04:00
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
Ash Wilson
a53398daf7
Allow file references by basename or short path 2019-04-16 16:00:31 -04:00
Ash Wilson
f0dc842293
Distinguish between launch and open 2019-04-16 16:00:12 -04:00
Ash Wilson
58bd9bfa33
Don't open all precondition windows twice (oops) 2019-04-16 15:59:46 -04:00
Ash Wilson
2a50d87999
Use a single application to launch all precondition windows 2019-04-16 15:59:08 -04: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
Ash Wilson
08a29df12f
Omit untitled editors (at least for now) 2019-04-16 15:38:03 -04:00
Ash Wilson
8e15d9656a
Log missing roots instead of extra roots twice 2019-04-16 15:37:45 -04:00
Ash Wilson
d3b5ce0b4b
Use _ for an empty project root or editor path group
Co-Authored-By: Jason Rudolph <jason@jasonrudolph.com>
2019-04-16 15:37:01 -04:00
Ash Wilson
839544e0a9
Launch scenario test framework 2019-04-16 14:56:03 -04: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
656facc989 Retry flaky native watcher test 2019-04-10 14:08:02 -06: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
Benjamin Gray
814c23b950 this? 2019-03-05 14:30:29 +11:00
Benjamin Gray
f4887f7de6 actually fix it 2019-03-05 13:23:26 +11:00
Benjamin Gray
391bf710aa fix serialisation spec 2019-03-05 13:17:35 +11:00
Benjamin Gray
8a488b2bd1 fix lint 2019-03-04 23:44:57 +11:00
Benjamin Gray
0312f5347c fix specs 2019-03-04 22:52:32 +11: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
Ash Wilson
5854ab796f
Omit skipped specs entirely 2019-02-05 10:40:52 -05:00
Ash Wilson
f8fa5d61eb
Use ATOM_JASMINE_REPORTER to control terminal reporter 2019-02-05 10:13:49 -05:00
Ash Wilson
ed8658f54b
Use a custom Jasmine reporter to actually show spec names 2019-02-04 17:05:03 -05:00
Ash Wilson
31f0174513
Correct expectations elsewhere in the test suite 2019-02-01 15:08:46 -05:00
Ash Wilson
0a541eb552
Unit test for block decoration ordering 2019-02-01 13:13:49 -05:00
Ash Wilson
51cfc262c6
Pass an order property to test fixture block decorations 2019-02-01 13:12:47 -05:00
David Wilson
b92ae2ad04
Merge pull request #18603 from atom/electron-3-0
Upgrade to Electron 3.0
2019-01-31 19:15:14 -08:00
David Wilson
3714a8df87 Re-enable tests that crashed due to a superstring bug 2019-01-31 17:52:28 -08:00
Ash Wilson
88d7c6dbdd
Include now-missing project folders in initial state key computation 2019-01-24 11:33:44 -05:00
Ash Wilson
02e1ae4b0f
Notify about missing project folders 2019-01-24 10:39:50 -05:00
Ash Wilson
f6837d1f97
openLocations() flag to require a path to be an existing directory 2019-01-24 10:19:01 -05:00
David Wilson
11ed91300b Update StyleManager specs to address deprecated ::shadow selectors
As of Chromium 63, ::shadow CSS selectors have been fully removed:

https://developers.google.com/web/updates/2017/10/remove-shadow-piercing

As a result, any usage of ::shadow in a stylesheet seems to get removed as soon
as the stylesheet is applied to an HTMLStyleElement.  Since we have a couple of tests
that expect ::shadow selectors to be present, we must remove those expectations
since those selectors do not appear any longer.
2019-01-22 13:44:35 -08:00
Winston Liu
af769c266b
One more time 2019-01-18 21:42:27 -05:00
Winston Liu
be6eae77c6
*actually* fix the indentation 2019-01-18 21:41:58 -05:00
Winston Liu
f62cad02b3
Tabs to spaces
Thanks @arcanemagus
2019-01-18 21:40:35 -05:00
David Wilson
a41b69e46f Temporarily disable render process tests that crash in Electron 3 2019-01-18 15:13:24 -08:00
David Wilson
ff429230f1 Use correct fontWeight value in ThemeManager spec
In Chrome 66+ it seems that getComputedStyle().fontWeight returns the computed
numeric value of the style instead of the original descriptive name.  We now
look for value '700' which corresponds to the value of 'bold'.
2019-01-18 15:13:24 -08:00
David Wilson
eee7ae8abe Use fs.renameSync in Workspace spec to fix test failure 2019-01-18 15:13:24 -08: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
32a007597e
Merge branch 'master' into wl-open-empty-editor-as-pending 2019-01-17 23:07:00 -05:00
Winston Liu
852c54c026
Merge branch 'master' into wl-deserialize-and-activate 2019-01-17 10:36:06 -05:00
Tony Brix
4ba47b59d6 add test 2019-01-15 22:18:19 -06:00
Ash Wilson
f20aa038bd
Reorganize AtomApplication tests 2019-01-14 11:46:30 -05:00
Ash Wilson
92785ac257
Merge branch 'master' into aw/single-file 2019-01-14 10:22:51 -05:00
Ash Wilson
ae57abe70a
Update smoke test to match new open behavior 2019-01-04 13:25:42 -05:00
Ash Wilson
bac378654e
Deflake test that depends on tree-view loading project folders 2019-01-04 11:07:56 -05:00
Ash Wilson
34167d426f
Adjust tests to use --add when necessary 2019-01-04 11:07:06 -05:00
Ash Wilson
efc55d71a3
👕 Make standard happy with the test source 2019-01-04 09:11:35 -05:00
Ash Wilson
15594dd8c2
AtomApplication launch behavior shuffle 2019-01-03 16:41:17 -05:00
Ash Wilson
6938a31329
Never open the parent directory of a file path 2019-01-03 16:39:09 -05:00
Ash Wilson
01bd45ef4c
When only a file is specified, don't open the parent directory 2018-12-20 15:59:41 -05:00
Max Brunsfeld
cc8ca52ba1 ⬆️ language-javascript, update test w/ new scope mapping 2018-12-19 09:55:23 -08:00
Max Brunsfeld
be79ca031c Fix typo that messed up fold marker updates 2018-11-27 10:11:32 -08:00
Benjamin Gray
f74aa0eff9 Add more tests 2018-11-23 20:26:20 +11:00
Benjamin Gray
a835a154bb make change 2018-11-22 11:20:36 +11:00
Benjamin Gray
0eae7eb604 Try again 2018-11-21 19:49:19 +11:00
Benjamin Gray
dc44cda61a See how this goes 2018-11-21 17:26:21 +11:00
Benjamin Gray
3a8f95e670 Start to add specs (in wrong file though) 2018-11-21 17:09:07 +11:00
Benjamin Gray
47c0a14517
Adjust cursor scope when at end of line (#18469)
* Use character before newline if possible

* Add tests
2018-11-21 15:20:57 +11:00
Max Brunsfeld
108b232107 Make scopeDescriptorForPosition work correctly between tokens
Fixes atom/bracket-matcher#365
2018-11-08 16:45:48 -08:00
Linus Eriksson
e158dceaf8
Merge pull request #18382 from atom/b3-mb-wildcard-selector
Distinguish between anonymous * token and wildcard selector
2018-11-03 21:42:24 +01:00
Max Brunsfeld
815cd2b2e9 Add randomized test for updating syntax highlighting, fix bugs 2018-11-02 17:02:29 -07:00
Linus Eriksson
f51ea2564b Distinguish between anonymous * token and wildcard selector
Co-authored-by: Max Brunsfeld <maxbrunsfeld@github.com>
2018-11-01 18:47:17 +01:00
Max Brunsfeld
6af0cbfc2d Use the correct comment strings for nested languages 2018-10-25 14:36:44 -07:00
Max Brunsfeld
78cdabf692 Revert tests updates in #17949 2018-10-19 19:29:43 -07:00
Linus Eriksson
ad41476cbe Add tests for synaxTreeScopeDescriptor 2018-10-18 17:49:37 +02:00
ariasuni
81364b6a1c Make soft-wrap break words before a slash or space and after a dash 2018-09-26 14:05:38 +02:00
Ash Wilson
d2c38ac36a
Merge pull request #18087 from atom/aw/gutter-measurement-update
Update soft wrap margins on gutter re-measurement
2018-09-21 15:48:12 -04:00
Ash Wilson
d7d6a33e08
Compute expected soft wrap column 2018-09-21 14:47:44 -04:00
Ash Wilson
39bc295f1c
Test soft wrap column measurement with a custom gutter 2018-09-21 13:14:47 -04:00
Max Brunsfeld
245472734b Allow tree-sitter setting to be set for specific languages 2018-09-21 09:34:13 -07:00
David Wilson
e82ee6ca37 Remove focused test 2018-09-20 13:07:32 -07:00
David Wilson
eb7f0aa452 Produce channel-specific Atom .exe and .cmd files on Windows 2018-09-20 12:05:01 -07:00
David Wilson
41748876f1 Pass the app object straight into SquirrelUpdate.updateShortcuts 2018-09-18 13:29:23 -07:00
David Wilson
83cfee6296 Decaffeinate spect/squirrel-update-spec.coffee 2018-09-18 13:11:37 -07:00
Tilde Ann Thurium
dc1f6a02f3 fix leaked state in tests. 2018-09-13 16:24:46 -07:00
Tilde Ann Thurium
9e6b4b413b add unit tests 2018-09-12 17:02:05 -07:00
Max Brunsfeld
04d29d9ba1 ⬆️ tree-sitter, language-ruby 2018-09-12 11:26:45 -07:00
Max Brunsfeld
0b6876c4c6 Accept a TextMate scope selector in bufferRangeForScopeAtPosition 2018-09-10 20:38:54 -07:00
David Wilson
d0ecc657ce
Merge pull request #17958 from cacheflow/add-capturing-to-keydown-events-when-hiding-tooltips
Fix: Added capturing to keydown events when hiding tooltips
2018-09-06 08:18:56 -07:00
David Wilson
c03ddebaef
Merge pull request #16940 from BoykoAlex/atom-links
Support `atom` protocol links when links are handled
2018-09-06 07:32:49 -07:00
Max Brunsfeld
ba96bbf8f1 Add TreeSitterLanguageMode.tokenForPosition 2018-09-05 09:54:43 -07:00
David Wilson
f5cda2b70b Merge remote-tracking branch 'origin/master' into atom-links 2018-09-05 09:43:06 -07:00
Max Brunsfeld
60c19afca2 Move more textmate-specific tests to TextMateLanguageMode spec 2018-09-04 11:37:30 -07:00
Max Brunsfeld
0db70b7865 Fix up text editor specs 2018-09-04 11:37:30 -07:00
Ashi Krishnan
e4248d13c8 Disable useTreeSitterParsers in the TextMateLanguageMode specs. 2018-09-04 11:37:30 -07:00
Max Brunsfeld
d88ae67a20 Update fixture package to use a tree-sitter grammar 2018-09-04 11:37:30 -07:00
Lexis Alexander
52331786a2 Fix: Added capturing to keydown events when hiding tooltips 2018-08-30 14:11:33 -07:00
Max Brunsfeld
3160c60c00 Always include root scope name in Tree-sitter scope descriptors 2018-08-30 12:30:52 -07:00
Max Brunsfeld
6456f8a032 Update language mode synchronously for multiple synchronous buffer changes 2018-08-30 12:30:34 -07:00
Ash Wilson
e3e315c5e9
Merge branch 'master' of github.com:atom/atom into pr-11139/atom/ld-change-range-event 2018-08-29 15:08:50 -04:00
Stepan Hruda
069d3ec91a
Merge pull request #17873 from atom/fb-sh-close-on-unload
During quit, close unloaded windows
2018-08-27 20:32:26 -04:00
Stepan Hruda
12c4e596b9 During quit, close unloaded windows
Released under CC0.
2018-08-27 19:06:36 -04:00
Max Brunsfeld
5c74112f79
Merge pull request #17913 from captbaritone/race
Avoid serialization race condition with slow package deactivation
2018-08-27 12:59:07 -07:00
Jordan Eldredge
351b624487 Fix unloading serialization test 2018-08-27 10:24:04 -07:00
Max Brunsfeld
51044ce16e Avoid babel in test files that are run in the main process 2018-08-24 12:07:24 -07:00
Max Brunsfeld
467415af19
Merge branch 'master' into wl-rm-safe-clipboard 2018-08-24 11:57:36 -07:00
Max Brunsfeld
4d3a9ec17b Update TextEditorRegistry spec to expect sync updates 2018-08-24 10:37:06 -07:00
Max Brunsfeld
f1f37ee948 Update syntax highlighting synchronously if parsing completes synchronously 2018-08-24 09:34:58 -07:00
Max Brunsfeld
f39ef32545 Delete spurious file 2018-08-24 09:34:58 -07:00
Max Brunsfeld
d1283fa69f Fix TreeSitterLanguageMode.isRowCommented 2018-08-24 09:34:58 -07:00
Ash Wilson
592722d094
Spec for passing additional options to the test window 2018-08-22 10:27:50 -04:00
Ash Wilson
4e150179a9
Merge pull request #17736 from atom/aw/custom-line-number-gutter
Multiple, custom line number gutters
2018-08-21 18:17:31 -04:00
Ash Wilson
e04da46e8a
Quick spec for line number rendering 2018-08-21 16:59:48 -04:00
David Wilson
ad4553cbba
Merge pull request #17686 from atom/dw-repo-local-core-packages
Enable repo-local core packages in the 'packages' folder
2018-08-21 10:08:39 -07:00
Ash Wilson
ddb1dec987
Merge remote-tracking branch 'origin/master' into aw/custom-line-number-gutter 2018-08-21 11:39:47 -04:00
Max Brunsfeld
fd6f9d39bd Make tree-sitter scope descriptors match HTML classes, not syntax tree 2018-08-20 10:40:55 -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
Max Brunsfeld
a01d0a7983 Adjust test to await fewer changes due to tree-sitter async bugfix 2018-08-13 10:15:34 -07:00
Max Brunsfeld
9072e58ea7
Merge pull request #17816 from atom/mb-tree-sitter-grammar-regex-tweaks
Support two different content-matching regexes for tree-sitter grammars
2018-08-10 13:33:24 -07:00
Max Brunsfeld
6d54578daa Use setTimeout instead of setImmediate in MenuManager
This should fix the flaky test failures that have been occurring on windows VSTS builds
2018-08-10 12:33:00 -07:00
Max Brunsfeld
87784989ad
Merge pull request #17750 from atom/mb-reduce-test-noise
Fix errors causing tests to fail when run from the UI
2018-08-10 12:22:54 -07:00
Max Brunsfeld
6f41353e9f Support two different content-matching regexes for tree-sitter grammars
* firstLineRegex is only tested against the first line of the file, and
  if it matches, it allows the grammar to be used for the file.
* contentRegex is only tested if the grammar matched the file name
  or the grammar's firstLineRegex matched. It is used to break ties
  between grammars like C and C++, Flow and JS
2018-08-09 17:19:32 -07:00
David Wilson
298db7314c Merge remote-tracking branch 'origin/master' into dw-repo-local-core-packages 2018-08-08 11:07:05 -07:00
Max Brunsfeld
826844c7e0 Emit onDidTokenize event from TreeSitterLanguageMode 2018-08-07 21:03:03 -07:00
David Wilson
6753b929cb Don't depend on ATOM_DEV_RESOURCE_PATH for local core package path 2018-08-07 16:09:34 -07:00
Max Brunsfeld
058e2b82dc Allow comma-separated selectors as keys in Tree-sitter scope mappings 2018-08-04 17:17:43 -07:00