summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2010-11-19 08:18:31 +1000
committerLorn Potter <lorn.potter@nokia.com>2010-11-19 08:18:31 +1000
commitb33440d3648911bc6c4ea7524e78177ed38c2d1b (patch)
treeca87ddff3e39df46cee2ced4906923bd6fd7bbd9 /tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
parent54698269ba2e9eb1792860e6254cb058c46b1200 (diff)
make keypadLightOn better.
Diffstat (limited to 'tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp')
-rw-r--r--tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
index 6ef454067d..9751a3ec05 100644
--- a/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
+++ b/tests/auto/qsystemdeviceinfo/tst_qsystemdeviceinfo.cpp
@@ -277,10 +277,14 @@ void tst_QSystemDeviceInfo::tst_isKeyboardFlipOpen()
}
void tst_QSystemDeviceInfo::tst_keypadLightOn()
+
{
QSystemDeviceInfo di;
- bool on = di.keypadLightOn();
+ bool on = di.keypadLightOn(QSystemDeviceInfo::PrimaryKeypad);
+ QVERIFY(on || !on);
+ on = di.keypadLightOn(QSystemDeviceInfo::SecondaryKeypad);
QVERIFY(on || !on);
+
}
void tst_QSystemDeviceInfo::tst_backLightOn()