diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-04-02 08:26:09 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-04-02 08:26:09 +0200 |
commit | 7a71b856553ffa1441176b6954d6963baeb2e334 (patch) | |
tree | 4c5e5697028c39451e2825ecd7ff0ccdbb0c5b2e /tests/unit/browser/test_caret.py | |
parent | 828a393b208f1a1f88c5cbff3e64cd1840b9be6c (diff) | |
download | qutebrowser-7a71b856553ffa1441176b6954d6963baeb2e334.tar.gz qutebrowser-7a71b856553ffa1441176b6954d6963baeb2e334.zip |
Use :move-to-end-of-word to test :reverse-selection
On macOS, doing :move-to-end-of-line after :toggle-selection still moves the
right cursor (rather than the left), causing our test to fail. Running the
equivalent JS snippet on Chrome reveals the same behavior, so let's just use
some other movement for the test.
Fixes #4694
Diffstat (limited to 'tests/unit/browser/test_caret.py')
-rw-r--r-- | tests/unit/browser/test_caret.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/browser/test_caret.py b/tests/unit/browser/test_caret.py index 0910e15aa..a4e7fb2e6 100644 --- a/tests/unit/browser/test_caret.py +++ b/tests/unit/browser/test_caret.py @@ -377,9 +377,9 @@ class TestReverse: def test_repetition_of_movement_results_in_empty_selection(self, caret, selection): selection.toggle() - caret.move_to_end_of_line() + caret.move_to_end_of_word() caret.reverse_selection() - caret.move_to_end_of_line() + caret.move_to_end_of_word() selection.check("") def test_reverse(self, caret, selection): |