qutebrowser/tests/unit
Ryan Roden-Corrent 47447c047a Ensure completions are sorted after filtering.
I previously removed the sorting logic from SortFilter thinking it was
unnecessary if we construct the model with a sorted list. However, this
only worked when no pattern was set, and the items are misordered as
soon as a pattern is input.

This patch reintroduces alpha-sorting, which can be disabled by passing
sort=False to the ListCategory constructor. The session completion test
had to be tweaked as it simulated the incorrect assumption that the
session list is not alpha-ordered; sessions come out of the
session-manager pre-sorted so we may as well use alpha-sorting in the
session completion model.

Resolves #3156.
2017-11-02 22:10:00 -04:00
..
browser Set backend in TestRectOnView.test_zoomed 2017-10-20 08:07:10 +02:00
commands Improve tests for partial matching 2017-10-17 11:49:46 +02:00
completion Ensure completions are sorted after filtering. 2017-11-02 22:10:00 -04:00
config Fix string escaping in config.source test 2017-10-20 10:05:42 +02: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 Use existing tabbed_browser_stubs fixture in tests 2017-10-04 06:35:42 +02:00
misc Fix error code for "database is locked" 2017-10-17 15:35:23 +02:00
scripts Review fixes 2017-10-04 09:22:35 -04:00
utils Make standarddir work on HaikuOS 2017-10-17 22:37:14 +02:00
test_app.py Finally update copyrights... 2017-05-09 21:37:03 +02:00