qutebrowser/tests/unit
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
..
browser Greasemonkey: handle downloads that complete fast 2018-03-03 15:02:43 +13:00
commands Update copyright years 2018-02-05 12:19:50 +01:00
completion Simplify mock checks 2018-03-02 06:33:56 +01:00
config Add a test for :set -p with a pattern 2018-02-25 19:33:27 +01:00
javascript Greasemonkey: Add test for @require support. 2018-03-03 15:02:42 +13:00
keyinput Update copyright years 2018-02-05 12:19:50 +01:00
mainwindow Use a different directory for file prompt tests 2018-02-19 22:08:42 +01:00
misc Paste version information privately 2018-02-26 23:09:55 +01:00
scripts Update copyright years 2018-02-05 12:19:50 +01:00
utils Merge branch 'per-url' 2018-02-25 19:44:51 +01:00
test_app.py Update copyright years 2018-02-05 12:19:50 +01:00