summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-12-10 13:21:20 +1000
committerLorn Potter <lorn.potter@nokia.com>2010-12-10 13:21:20 +1000
commita68b307bc2498559d2d932dc1b50584a537fc97a (patch)
treefaf600b3b1ec57c872063138988552166368421c /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parentd25714f2d8dee10551bc43d4d4f38da919b088a8 (diff)
dont add wirelesskeypard when there isn't. and test.
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 3c8de88b6b..a25a54c39e 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -258,8 +258,13 @@ void tst_QSystemDeviceInfo::tst_keyboardType()
|| (flags && QSystemDeviceInfo::SoftwareKeyboard == QSystemDeviceInfo::SoftwareKeyboard)
|| (flags && QSystemDeviceInfo::ITUKeypad == QSystemDeviceInfo::ITUKeypad)
|| (flags && QSystemDeviceInfo::HalfQwertyKeyboard == QSystemDeviceInfo::HalfQwertyKeyboard)
- || (flags && QSystemDeviceInfo::FullQwertyKeyboard == QSystemDeviceInfo::FullQwertyKeyboard)
- || (flags && QSystemDeviceInfo::WirelessKeyboard == QSystemDeviceInfo::WirelessKeyboard));
+ || (flags && QSystemDeviceInfo::FullQwertyKeyboard == QSystemDeviceInfo::FullQwertyKeyboard));
+
+ if(di.isWirelessKeyboardConnected()) {
+ QVERIFY((flags & QSystemDeviceInfo::WirelessKeyboard));
+ } else {
+ QVERIFY((flags & ~QSystemDeviceInfo::WirelessKeyboard));
+ }
}
void tst_QSystemDeviceInfo::tst_isWirelessKeyboardConnected()