diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp index 33de1e70..9ffafb94 100644 --- a/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp +++ b/tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp @@ -114,12 +114,12 @@ void tst_Sensors2QMLAPI::testProximity() void tst_Sensors2QMLAPI::testAmbientLight() { QSensor2AmbientLight als; - QSignalSpy spy(&als, SIGNAL(runningChanged())); - als.setProperty("running", QVariant(true)); + QSignalSpy spy(&als, SIGNAL(enabledChanged())); + als.setProperty("enabled", QVariant(true)); QCOMPARE(spy.count() , 1); spy.clear(); - als.setProperty("running", QVariant(true)); + als.setProperty("enabled", QVariant(true)); QCOMPARE(spy.count() , 0); TestSensorPlugin plugin; @@ -138,7 +138,7 @@ void tst_Sensors2QMLAPI::testAmbientLight() abl->test((QSensor2AmbientLight::LightLevel)en); QCOMPARE(spy1.count() , 0); } - als.setProperty("running", QVariant(false)); + als.setProperty("enabled", QVariant(false)); } void tst_Sensors2QMLAPI::testTilt_data() |