tests: add test for cancelling a mhtml download

This commit is contained in:
Daniel Schadt 2016-06-02 23:07:03 +02:00
parent 1cabae0583
commit c3e7ab52b5
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<html>
<head>
<title>test case for issue 1535</title>
</head>
<body>
<p>Cancelling a download that belongs to a mhtml download.</p>
<p>See also <a href="https://github.com/The-Compiler/qutebrowser/issues/1535">GitHub</a></p>
<!--
Use drip so we have a chance to cancel the download before
it finishes
-->
<img src="/drip?numbytes=128&duration=2">
</body>
</html>

View File

@ -126,6 +126,14 @@ Feature: Downloading things from a website.
Then "cancelled" should be logged
And "cancelled" should be logged
# https://github.com/The-Compiler/qutebrowser/issues/1535
Scenario: Cancelling a MHTML download (issue 1535)
When I open data/downloads/issue1535.html
And I run :download --mhtml
And I wait 1s
And I run :download-cancel
Then no crash should happen
## :download-delete
Scenario: Deleting a download