From 677dcd67486804a1e4fe7a6e67c090dc7ff61d14 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Jan 2016 07:15:34 +0100 Subject: [PATCH] bdd: Add tests for :print. --- tests/integration/features/misc.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/integration/features/misc.feature b/tests/integration/features/misc.feature index a18858019..b75dc4a9a 100644 --- a/tests/integration/features/misc.feature +++ b/tests/integration/features/misc.feature @@ -273,3 +273,21 @@ Feature: Various utility commands. And I set storage -> prompt-download-directory to false And I open data/misc/test.pdf Then "Download finished" should be logged + + # :print + + # Disabled because it causes weird segfaults and QPainter warnings in Qt... + @skip + Scenario: print preview + When I open data/hello.txt + And I run :print --preview + And I wait for "Focus object changed: *" in the log + And I run :debug-pyeval QApplication.instance().activeModalWidget().close() + Then no crash should happen + + Scenario: print + When I open data/hello.txt + And I run :print + And I wait for "Focus object changed: *" in the log + And I run :debug-pyeval QApplication.instance().activeModalWidget().close() + Then no crash should happen