qutebrowser/tests/unit
Florian Bruhin 180fb0d65a Fix handling of caret position with Qt 5.10
With Chromium 61 in Qt 5.10, we get null when getting .selectionStart on a
non-text element, like changed in the WhatWG HTML standard:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-textarea/input-selectionstart

See https://www.chromestatus.com/feature/5740194741354496

Older QtWebEngines and QtWebKit raise InvalidStateError instead.

This also changes the surrounding code and API so None is used to say "there's
no caret position available", which seems like a nicer API.
2017-11-08 16:27:26 +01:00
..
browser Add unit tests for UnicodeEncodeError handling 2017-11-08 07:47:11 +01:00
commands Make testsuite work with LC_ALL=C 2017-11-07 17:23:38 +01:00
completion Implement completion-item-yank. 2017-11-05 11:07:38 -05:00
config Bump up default font size to 10pt 2017-11-06 07:36:52 +01:00
javascript Finally update copyrights... 2017-05-09 21:37:03 +02:00
keyinput Fix modeparser tests 2017-09-22 19:49:52 +02:00
mainwindow Fix a couple style issues 2017-10-30 12:40:44 -04:00
misc Fix handling of caret position with Qt 5.10 2017-11-08 16:27:26 +01:00
scripts Fix test: sort when comparing file collection 2017-11-04 20:03:53 -04:00
utils Add unit tests for UnicodeEncodeError handling 2017-11-08 07:47:11 +01:00
test_app.py Finally update copyrights... 2017-05-09 21:37:03 +02:00