summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWolfgang Beck <wolfgang.beck@nokia.com>2011-09-28 13:55:12 +1000
committerLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-10 09:25:31 +1000
commitc25e4e542fd846facb1ca250d44829c0121abdd2 (patch)
treed9133e16dd718488d3d8e22216747b0c9cc6430c /tests
parent4e04cda0e600f4e3bb148956ba631647a5c1fa4c (diff)
MTMW356 Coderevew changes for the AmbientLightSensor QML Element
Change-Id: Ic5ceb21897fdf65ca611ad5ff4c7ac397b44547c Reviewed-on: http://codereview.qt-project.org/5664 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/sensors2qmlapi/tst_sensors2qmlapi.cpp8
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()