summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_caret.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-09-14 21:58:42 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-14 21:58:42 +0200
commit200c11625f4dd6fb2a36f3dcb674402918da6c79 (patch)
treec35917706441b11b542d40bfae10d3edfb82a3fc /tests/unit/browser/test_caret.py
parent8d066690e67582348e0f1bf5900e40a5964bd185 (diff)
downloadqutebrowser-200c11625f4dd6fb2a36f3dcb674402918da6c79.tar.gz
qutebrowser-200c11625f4dd6fb2a36f3dcb674402918da6c79.zip
Revert "Make sure we wait until follow_selected is done"
This reverts commit bc45aa33e0ac58e8ccd54508b36dc0b463c4c3c3.
Diffstat (limited to 'tests/unit/browser/test_caret.py')
-rw-r--r--tests/unit/browser/test_caret.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/unit/browser/test_caret.py b/tests/unit/browser/test_caret.py
index 70677361c..5e1be7e74 100644
--- a/tests/unit/browser/test_caret.py
+++ b/tests/unit/browser/test_caret.py
@@ -336,19 +336,17 @@ class TestFollowSelected:
def test_follow_selected_without_a_selection(self, qtbot, caret, selection, web_tab,
mode_manager):
mode_manager.leave(usertypes.KeyMode.caret)
- with qtbot.wait_signal(caret.follow_selected_done):
- with qtbot.assert_not_emitted(web_tab.load_started):
- caret.follow_selected()
- qtbot.wait(self.LOAD_STARTED_DELAY)
+ with qtbot.assert_not_emitted(web_tab.load_started):
+ caret.follow_selected()
+ qtbot.wait(self.LOAD_STARTED_DELAY)
def test_follow_selected_with_text(self, qtbot, caret, selection, web_tab):
caret.move_to_next_word()
selection.toggle()
caret.move_to_end_of_word()
- with qtbot.wait_signal(caret.follow_selected_done):
- with qtbot.assert_not_emitted(web_tab.load_started):
- caret.follow_selected()
- qtbot.wait(self.LOAD_STARTED_DELAY)
+ with qtbot.assert_not_emitted(web_tab.load_started):
+ caret.follow_selected()
+ qtbot.wait(self.LOAD_STARTED_DELAY)
@pytest.mark.parametrize('with_js', [True, False])
def test_follow_selected_with_link(self, caret, selection, config_stub,