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

List:       kde-commits
Subject:    [kdelibs/frameworks] staging/frameworkintegration/autotests: No need to test the qpa->qApp propagati
From:       Kevin Ottens <ervin+bluesystems () kde ! org>
Date:       2013-08-27 14:05:31
Message-ID: E1VEJtj-0005xN-4B () scm ! kde ! org
[Download RAW message or body]

Git commit 8bb2ebafb431a3a52a066fafdd0fafec2273aedb by Kevin Ottens.
Committed on 27/08/2013 at 14:03.
Pushed by ervin into branch 'frameworks'.

No need to test the qpa->qApp propagation it's in Qt

Also by not verifying this integration which is outside our realm, the
tests pass even if the platform theme plugin isn't installed (which
seems to be the case on build.kde.org).

M  +1    -7    staging/frameworkintegration/autotests/kdeplatformtheme_unit=
test.cpp

http://commits.kde.org/kdelibs/8bb2ebafb431a3a52a066fafdd0fafec2273aedb

diff --git a/staging/frameworkintegration/autotests/kdeplatformtheme_unitte=
st.cpp b/staging/frameworkintegration/autotests/kdeplatformtheme_unittest.c=
pp
index e9ab6d6..8b9ffab 100644
--- a/staging/frameworkintegration/autotests/kdeplatformtheme_unittest.cpp
+++ b/staging/frameworkintegration/autotests/kdeplatformtheme_unittest.cpp
@@ -169,19 +169,13 @@ class KdePlatformTheme_UnitTest : public QObject
             m_loop.exec();
 =

             QCOMPARE(m_qpa->themeHint(QPlatformTheme::CursorFlashTime).toI=
nt(), 1022);
-            QCOMPARE(qApp->cursorFlashTime(), 1022);
 =

             sendNotifyChange(KHintsSettings::SettingsChanged, KHintsSettin=
gs::SETTINGS_MOUSE);
             m_loop.exec();
 =

             QCOMPARE(m_qpa->themeHint(QPlatformTheme::MouseDoubleClickInte=
rval).toInt(), 401);
-            QCOMPARE(qApp->doubleClickInterval(), 401);
-
             QCOMPARE(m_qpa->themeHint(QPlatformTheme::StartDragDistance).t=
oInt(), 35);
-            QCOMPARE(qApp->startDragDistance(), 35);
-
             QCOMPARE(m_qpa->themeHint(QPlatformTheme::StartDragTime).toInt=
(), 501);
-            QCOMPARE(qApp->startDragTime(), 501);
 =

             QCOMPARE(qApp->wheelScrollLines(), 122);
             QCOMPARE(qApp->testAttribute(Qt::AA_DontShowIconsInMenus), tru=
e);
@@ -190,4 +184,4 @@ class KdePlatformTheme_UnitTest : public QObject
 =

 QTEST_MAIN(KdePlatformTheme_UnitTest)
 =

-#include "kdeplatformtheme_unittest.moc"
\ No newline at end of file
+#include "kdeplatformtheme_unittest.moc"
[prev in list] [next in list] [prev in thread] [next in thread] 

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