Florian Bruhin
a27a8ada4d
Use qtbot.wait_callback
2018-09-26 11:45:45 +02:00
Florian Bruhin
73cba046e5
Use wait argument with qtbot.assert_not_emitted
2018-09-26 11:27:58 +02:00
Florian Bruhin
e105edebf5
Wait for follow_selected_done
2018-09-15 20:46:11 +02:00
Florian Bruhin
f817e5d271
Fix typo
2018-09-15 20:41:56 +02:00
Florian Bruhin
abff44def6
Get rid of end-of-doc-workaround in caret browsing
...
In Qt < 5.10 (and also sometimes on Windows), we get extra spaces or newlines
when moving to the end of the document. However, this only happens *sometimes*,
and manual testing confirms that with the current workaround, we actually lose
the last char in the selection.
I'm not sure what's happening there, but instead of making things worse with
the workaround, let's just be a bit less strict with the checking there and
accept both variants... This seems like some Chromium bug we can't do much
about.
2018-09-15 20:39:35 +02:00
Florian Bruhin
e47bf7a137
Remove duplicate test
2018-09-15 15:49:48 +02:00
Florian Bruhin
d74daf9294
Fix lint
2018-09-14 22:52:40 +02:00
Florian Bruhin
5ea8e766f5
Run all :follow-selected tests with/without JS
2018-09-14 22:49:18 +02:00
Florian Bruhin
b5af448196
Fix test_follow_selected_without_a_selection on QtWebKit
2018-09-14 22:46:31 +02:00
Florian Bruhin
4ae78d9bb2
Revert "Revert "Make sure we wait until follow_selected is done""
...
This reverts commit 200c11625f
.
2018-09-14 22:40:47 +02:00
Florian Bruhin
200c11625f
Revert "Make sure we wait until follow_selected is done"
...
This reverts commit bc45aa33e0
.
2018-09-14 21:58:42 +02:00
Florian Bruhin
8d066690e6
Fix :follow-selected tests
2018-09-14 21:57:37 +02:00
Florian Bruhin
bc45aa33e0
Make sure we wait until follow_selected is done
2018-09-14 20:18:33 +02:00
Florian Bruhin
68af23b76e
Try getting selection multiple times
2018-09-13 22:41:30 +02:00
Florian Bruhin
62458c7a84
Register a qute://testdata/ scheme for unit tests
...
This is more lightweight than running a webserver (probably about the same as
file://), but allows us to use relative links in files.
2018-09-13 22:32:00 +02:00
Florian Bruhin
20da259de6
Rewrite some :follow-selected tests as unit tests
2018-09-08 16:01:38 +02:00
Florian Bruhin
9c67239847
Fix lint
2018-09-08 14:52:47 +02:00
Florian Bruhin
db6935b42e
Fix TestSearch caret tests
...
For some reason, they need the window to be shown on a screen to work...
2018-09-08 12:26:00 +02:00
Florian Bruhin
64e321d47c
Rewrite most caret tests as unit tests
2018-09-08 12:15:32 +02:00