From c3e7ab52b59c8bb76fb0f85ae6e8359b563a7b75 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 2 Jun 2016 23:07:03 +0200 Subject: [PATCH] tests: add test for cancelling a mhtml download --- tests/end2end/data/downloads/issue1535.html | 14 ++++++++++++++ tests/end2end/features/downloads.feature | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/end2end/data/downloads/issue1535.html diff --git a/tests/end2end/data/downloads/issue1535.html b/tests/end2end/data/downloads/issue1535.html new file mode 100644 index 000000000..0375fe39f --- /dev/null +++ b/tests/end2end/data/downloads/issue1535.html @@ -0,0 +1,14 @@ + + + test case for issue 1535 + + +

Cancelling a download that belongs to a mhtml download.

+

See also GitHub

+ + + + diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature index 152336c49..f5168e145 100644 --- a/tests/end2end/features/downloads.feature +++ b/tests/end2end/features/downloads.feature @@ -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