From c25e4e542fd846facb1ca250d44829c0121abdd2 Mon Sep 17 00:00:00 2001 From: Wolfgang Beck Date: Wed, 28 Sep 2011 13:55:12 +1000 Subject: MTMW356 Coderevew changes for the AmbientLightSensor QML Element Change-Id: Ic5ceb21897fdf65ca611ad5ff4c7ac397b44547c Reviewed-on: http://codereview.qt-project.org/5664 Reviewed-by: Qt Sanity Bot Reviewed-by: Wolfgang Beck --- tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto') 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() -- cgit v1.2.3