Commit Graph

378 Commits

Author SHA1 Message Date
confused-Techie
b457c768a5 Added text-editor-component-spec.js 2022-09-25 00:13:28 -07:00
Fabian Fiorotto
3c3b40b53e Disable middle-click paste for cursor position test. 2022-09-04 15:30:40 -07:00
Maurício Szabo
c4304c0d3b Fixed specs that expected libs to be on scripts 2022-08-15 15:02:37 -03:00
sadick254
fadf565b30
Fix linting issues 2021-07-28 22:31:35 +03:00
sadick254
6deb323384
Use customElement for the specs
document.register element will be deprecated on chrome bundled with
electron 11. This makes it impossible to upgrade
2021-07-28 18:55:15 +03:00
sadick254
b2477be794
Speed up blinking cursor 2021-05-06 23:24:30 +03:00
Sadick
f4d832f2e2
Upgrade to electron 9.4.4 (#21777)
* Electron 9.4.4 Upgrade

Co-authored-by: Amin Yahyaabaadi <aminyahyaabadi74@gmail.com>
Co-authored-by: Maarten Fonville <mfonville@users.noreply.github.com>
Co-authored-by: Andrea Bogazzi <andreabogazzi79@gmail.com>
2021-03-05 07:48:45 +03:00
Sadick
1e10a0a746
Add setting to disable middle mouse paste (#21864)
* Add editor setting

* Only paste on middle click if selectionClipboard is true

* Add specs
2021-01-15 09:50:45 +03:00
Tony Brix
21580aa170 fix multi cursor correct setting 2020-06-11 11:13:32 -05:00
Mazen Elkashef
4feca894e1
Merge pull request #20444 from UziTech/disable-multicursor
feat: add setting to disable multi cursor on click
2020-05-13 06:29:17 -05:00
Tony Brix
d5c3c9661d feat: add setting to disable multi cursor on click 2020-02-24 17:54:22 -06:00
Ben Klein
5b6a4f67b3 spec/text-editor-component: linter/test var fix 2020-01-22 23:10:36 -05:00
Ben Klein
f9f6f32f89 tests: Text Editor component Event.preventDefault 2020-01-22 22:52:01 -05:00
Antonio Scandurra
ae10429d08 Ensure TextEditorComponent was resized before asserting on its contents
Previously, we would wait for the next update promise after resizing the 
editor as an indicator of when the resize occurred. Unfortunately, 
resize events are unreliable and may not be emitted right away. This 
could cause the test code to wait for an update promise that was 
unrelated to the resize event (e.g., cursor blinking).

This commit uses a condition-based promise that ensures the rendered 
rows have changed as a result of the resize. This seems to fix the issue 
locally when introducing artificial timeouts in the resize event.
2019-06-11 16:20:56 +02:00
Rafael Oleza
7f3f040628 Reformat all JS files using prettier 2019-05-31 18:33:56 +02: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
6c46cf9243 Fix remaining linter issues 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
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
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
467415af19
Merge branch 'master' into wl-rm-safe-clipboard 2018-08-24 11:57:36 -07:00
Ash Wilson
e04da46e8a
Quick spec for line number rendering 2018-08-21 16:59:48 -04:00
Ryan Holinshead
a280019847 Add spec to test that updateClassList does not blow away the managed class names (editor, is-focused, mini) when the element class names are changed.
Released under CC0
2018-07-16 14:58:39 -07:00
Max Brunsfeld
0148ee7d9b Always leave room for scrollbars 2018-06-07 14:42:06 -07:00
Max Brunsfeld
70cf900ac0 Make TextEditorComponent tests reliably pass on retina screens 2018-06-07 14:09:31 -07:00
Antonio Scandurra
26837d65b4 Clip cursor width when soft-wrap is on and cursor is at the end of line
This prevents the parent tile from disabling sub-pixel anti-aliasing.
For some reason, adding `overflow: hidden` to the cursor container
element doesn't solve the issue, so we're adding this workaround
instead.
2018-03-13 12:04:35 +01:00
Linus Eriksson
a790f1e3ec Randomize fontSize and lineHeight in the random test
This causes the failure fixed by https://github.com/atom/atom/pull/15831
to be caught by the randomized test more easily
2018-03-05 17:24:19 +01:00
Nathan Sobo
e334f0419f
Merge pull request #16753 from billyjanitsch/revert-15487
Stop scaling up small scroll wheel events
2018-02-16 11:58:33 -08:00
Linus Eriksson
63326e969a Unfocus test and always return false to see if this fails on circle 2018-02-15 22:53:29 +01:00
Linus Eriksson
ad6b2131d6 Style the scrollbar in the test 2018-02-15 22:47:33 +01:00
Linus Eriksson
3059d14bd7 Merge remote-tracking branch 'origin/master' into b3-failing-seed 2018-02-15 19:49:58 +01:00
Billy Janitsch
a433e974eb Stop scaling up small scroll wheel events 2018-02-15 10:42:57 -08:00
Wliu
7e0635d2c0
Fix spec 2018-01-26 18:41:57 -05:00
Wliu
be24e6edf7
Revert change to move mouse cursor on right-click 2018-01-24 11:22:41 -05:00
David Wilson
6d09a5257a Fix #16538: Middle-click pastes into read only editor on Linux
This change fixes an issue where users on Linux are able to paste into
read only TextEditors by clicking the middle mouse button.  The fix is
to check for whether the TextEditorComponent's isInputEnabled method
returns true before pasting with middle click on Linux.
2018-01-22 18:50:07 -08:00
Antonio Scandurra
8e74d06f64 Fix tests 2018-01-20 11:09:26 +01:00
Linus Eriksson
04507e9ee2 Use nested arrays instead of Range 2018-01-19 19:09:54 +01:00
Linus Eriksson
e07a9a6387 Merge branch 'master' of https://github.com/atom/atom into b3-failing-seed 2018-01-19 19:08:21 +01:00
Wliu
cd84216f11
Merge branch 'master' into wl-rm-safe-clipboard 2018-01-09 21:39:04 -05:00
Nathan Sobo
4926fe466c Move highlights container into lines for theme compatibility 2018-01-08 13:16:46 -07:00
Wliu
a1668fc953
Remove old clipboard workaround on Linux 2018-01-04 20:59:32 -05:00
Antonio Scandurra
69799d35b2 Delete Chrome 56 workarounds 2017-12-22 14:44:17 +01:00
Wliu
db392502e4
Always move the cursor on middle-click 2017-12-05 23:54:43 +01:00
Max Brunsfeld
e08091f193 Make assignLanguageMode take a language id instead of a language name 2017-11-28 11:14:29 -08:00
Max Brunsfeld
20bf705000 Destroy editors after text editor component specs
This only now became necessary because TokenizedBuffer now *always*
receives a reference to the Atom config on construction, and always
tries to read from it when isFoldableAtRow is called, which can happen
after test cleanup due to resize observers.
2017-11-20 11:59:21 -08:00
Max Brunsfeld
f6c2e0eba4 Allow setting the null language mode w/ assignLanguageMode(buffer, null) 2017-11-20 09:48:00 -08:00