qutebrowser/tests/end2end/features
Daniel Schadt 8795f89c88 tests: fix tests for downloads bdd test
The test was failing because of two reasons:

First, the old code had filename questions in DownloadManager.get and
DownloadManager.fetch which were almost identical, thus the part in
DownloadManager.get was removed in an earlier commit. All filename
asking is now done by DownloadManager.fetch. The good part is code
deduplication, the bad part is slightly modified behavior: The new code
doesn't wait for a filename to start the download, instead it tries to
fill the buffer immediately. This made the test fail because qute:// has
no registered handler, so in order for the test to pass now, the "no
crash" part is not enough, we also need to expect the "No handler"
error.

Secondly, and a rather rare (race) condition was the handling of errors
in the DownloadItem. If an error occured after the registration of
self.on_reply_error as error handler and before the check
    reply.error() != QNetworkReply.NoError
at the end of the function, the error signal would be emitted twice:
Once by _die() (called by on_reply_error), and once by the init_reply
function directly (in the last if block). This lead to duplicated error
messages. This is also explained in a comment in the file (with small
"stack traces").
2016-07-12 16:52:01 +02:00
..
backforward.feature Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
caret.feature Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
conftest.py Add test for :print --pdf 2016-07-11 20:08:24 -04:00
downloads.feature tests: fix tests for downloads bdd test 2016-07-12 16:52:01 +02:00
editor.feature Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
hints.feature Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
history.feature Full redirect support for history 2016-06-10 14:40:42 +02:00
javascript.feature Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
keyinput.feature Split browser into browser/browser.webkit 2016-06-13 11:18:21 +02:00
marks.feature Stabilize tests using :follow-hint 2016-05-30 14:54:06 +02:00
misc.feature tests: adjust tests for new download mode 2016-07-12 16:52:01 +02:00
navigate.feature bdd: Delete "Navigating up with root directory" 2016-05-29 23:59:28 +02:00
open.feature Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
prompts.feature Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
scroll.feature Test for scroll with count and argument 2016-06-29 11:47:51 +02:00
search.feature Remove general -> wrap-search 2016-07-12 16:47:57 +02:00
sessions.feature Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
set.feature Change relevant tests to work with new toggle behaviour 2016-06-08 19:37:13 +01:00
spawn.feature tests: Skip :spawn with invalid quoting on Windows 2016-07-03 17:32:19 +02:00
tabs.feature Fix tabs.feature tests 2016-07-07 18:32:52 +02:00
test_backforward_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_caret_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_downloads_bdd.py tests: adjust tests for new download mode 2016-07-12 16:52:01 +02:00
test_editor_bdd.py Rename shadowed function 2016-06-06 09:06:49 +02:00
test_hints_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_history_bdd.py Full redirect support for history 2016-06-10 14:40:42 +02:00
test_javascript_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_keyinput_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_marks_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_misc_bdd.py Sanity check the PDF file for :print --pdf test 2016-07-12 13:28:43 +02:00
test_navigate_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_open_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_prompts_bdd.py Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
test_scroll_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_search_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_sessions_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_set_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_spawn_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_tabs_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_urlmarks_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_yankpaste_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
test_zoom_bdd.py Clean up end2end test file structure 2016-05-29 18:20:00 +02:00
urlmarks.feature Add more tests for :bookmark-add 2016-07-08 15:54:39 +01:00
yankpaste.feature Fix some a/an misspellings 2016-07-05 08:34:03 +02:00
zoom.feature Add a test for zooming in cloned tab 2016-06-15 14:44:01 +02:00