qutebrowser/tests/unit/browser
Jimmy 7dab8335e2 Greasemonkey: handle downloads that complete fast
When `@require`ing local files (with the `file://` scheme) the
greasemonkey manager was not catching the DownloadItem.finished signal
because it was being emitted before it had managed to connect.

I didn't see this happening while testing with files that should have
been in cache but I wouldn't be surprised.

I had to change the download mock to be able to give it the appearance
of asynchronicity. Now when using it one must set download.successful
appropriately before firing download.finished. I also added a list of
downloads to the stub so a test could enumerate them in case the
unit-under-test didn't have a reference to them.
2018-03-03 15:02:43 +13:00
..
webengine Make sure the backend is set in test_webenginesettings.py 2018-03-02 07:00:09 +01:00
webkit Simplify QtWebKit scheme handlers 2018-02-11 17:14:41 +01:00
test_adblock.py Greasemonkey: handle downloads that complete fast 2018-03-03 15:02:43 +13:00
test_hints.py Update copyright years 2018-02-05 12:19:50 +01:00
test_history.py Update copyright years 2018-02-05 12:19:50 +01:00
test_pdfjs.py tests: relax pdfjs tests 2016-10-06 16:18:21 +02:00
test_qutescheme.py Update copyright years 2018-02-05 12:19:50 +01:00
test_shared.py Update copyright years 2018-02-05 12:19:50 +01:00
test_signalfilter.py Update copyright years 2018-02-05 12:19:50 +01:00
test_tab.py Update copyright years 2018-02-05 12:19:50 +01:00
urlmarks.py Remove unused import and TODO from urlmarks test. 2018-02-12 19:25:24 -05:00