summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-29 20:32:25 +0200
committerMontel Laurent <[email protected]>2017-07-29 20:32:25 +0200
commit124af15016efb7caf1d7d7c5b3152ddf07c65439 (patch)
tree64797c0602280a53d7007e7b20b97c9008bd3aff
parent1fbfaede22b7c8a1789812f7569de4c15b7cd17c (diff)
Fix autotest
-rw-r--r--src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp b/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp
index e0aea9d..83b797f 100644
--- a/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp
+++ b/src/ksieveui/sievescriptdebugger/autotests/sievescriptdebuggerfrontendwidgettest.cpp
@@ -80,6 +80,9 @@ void SieveScriptDebuggerFrontEndWidgetTest::shouldChangeButtonEnabledState()
emailPath->setUrl(QUrl::fromLocalFile(QStringLiteral("/")));
QPushButton *debugScriptButton = w.findChild<QPushButton *>(QStringLiteral("debugbutton"));
+ QVERIFY(!debugScriptButton->isEnabled());
+
+ w.setScript(QStringLiteral("foo"));
QVERIFY(debugScriptButton->isEnabled());
emailPath->setUrl(QUrl::fromLocalFile(QStringLiteral(" ")));