tests: add test for cancelling a mhtml download
This commit is contained in:
parent
1cabae0583
commit
c3e7ab52b5
14
tests/end2end/data/downloads/issue1535.html
Normal file
14
tests/end2end/data/downloads/issue1535.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user