summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsensor/tst_qsensor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp
index f378b89f..f56baad5 100644
--- a/tests/auto/qsensor/tst_qsensor.cpp
+++ b/tests/auto/qsensor/tst_qsensor.cpp
@@ -810,6 +810,16 @@ private slots:
QVERIFY(!sensor.isActive());
}
+ void testAlwaysOn()
+ {
+ TestSensor sensor;
+ QCOMPARE(sensor.isAlwaysOn(), false);
+ sensor.setAlwaysOn(true);
+ QCOMPARE(sensor.isAlwaysOn(), true);
+ sensor.setAlwaysOn(false);
+ QCOMPARE(sensor.isAlwaysOn(), false);
+ }
+
void testIsRegistered()
{
bool expected;