Commit Graph

8633 Commits

Author SHA1 Message Date
David Wilson
3714a8df87 Re-enable tests that crashed due to a superstring bug 2019-01-31 17:52:28 -08: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
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
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
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
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