[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kwidgetsaddons] autotests: autotests: more QCOMPAREs to debug CI failure
From:       David Faure <null () kde ! org>
Date:       2018-02-03 11:21:58
Message-ID: E1ehvtO-0001SK-Ao () code ! kde ! org
[Download RAW message or body]

Git commit 9f223e945e8f69157eee6b1524cba2bff51ff68b by David Faure.
Committed on 03/02/2018 at 11:21.
Pushed by dfaure into branch 'master'.

autotests: more QCOMPAREs to debug CI failure

M  +3    -0    autotests/kdatecomboboxtest.cpp

https://commits.kde.org/kwidgetsaddons/9f223e945e8f69157eee6b1524cba2bff51f=
f68b

diff --git a/autotests/kdatecomboboxtest.cpp b/autotests/kdatecomboboxtest.=
cpp
index 7f65dcf..31740b8 100644
--- a/autotests/kdatecomboboxtest.cpp
+++ b/autotests/kdatecomboboxtest.cpp
@@ -180,6 +180,8 @@ void KDateComboBoxTest::testSignals()
     combo->show();
     combo->activateWindow();
     QVERIFY(QTest::qWaitForWindowActive(combo.data()));
+    QCOMPARE(combo->currentText(), QStringLiteral("30/05/2016"));
+    QCOMPARE(combo->date(), QDate(2016, 05, 30));
 =

     // WHEN typing a new day (Home, Del, '2' -> 20 may 2016)
     QTest::keyClick(combo.data(), Qt::Key_Home);
@@ -187,6 +189,7 @@ void KDateComboBoxTest::testSignals()
     QTest::keyClick(combo.data(), Qt::Key_2);
 =

     // THEN
+    QCOMPARE(combo->currentText(), QStringLiteral("20/05/2016"));
     QCOMPARE(combo->date(), QDate(2016, 05, 20));
 =

     // and losing focus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic