From 03ebdfd641d260a26a349b8174cf8bcc8b72e3d3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Jan 2016 07:15:42 +0100 Subject: [PATCH] bdd: Add tests for :pyeval. --- tests/integration/features/misc.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/integration/features/misc.feature b/tests/integration/features/misc.feature index b75dc4a9a..9d2c334e6 100644 --- a/tests/integration/features/misc.feature +++ b/tests/integration/features/misc.feature @@ -291,3 +291,14 @@ Feature: Various utility commands. And I wait for "Focus object changed: *" in the log And I run :debug-pyeval QApplication.instance().activeModalWidget().close() Then no crash should happen + + # :pyeval + + Scenario: Running :pyeval + When I run :debug-pyeval 1+1 + And I wait until qute:pyeval is loaded + Then the page should contain the plaintext "2" + + Scenario: Running :pyeval with --quiet + When I run :debug-pyeval --quiet 1+1 + Then "pyeval output: 2" should be logged