Remove a few more obsolete parts.
Change-Id: I3a001f01ab7fd8cf63452126037b98c1b01df80d Reviewed-on: http://codereview.qt.nokia.com/1797 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
1403a1c7be
commit
eccb43d73c
@@ -538,7 +538,7 @@ void tst_QCameraBackend::testCameraCaptureMetadata()
|
||||
|
||||
void tst_QCameraBackend::testExposureCompensation()
|
||||
{
|
||||
#if !defined(Q_WS_MAEMO_6) && !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN)
|
||||
#if !defined(Q_WS_MAEMO_6)
|
||||
QSKIP("Capture exposure parameters are supported only on mobile platforms", SkipAll);
|
||||
#endif
|
||||
|
||||
@@ -547,12 +547,6 @@ void tst_QCameraBackend::testExposureCompensation()
|
||||
|
||||
QSignalSpy exposureCompensationSignal(exposure, SIGNAL(exposureCompensationChanged(qreal)));
|
||||
|
||||
#ifdef Q_OS_SYMBIAN
|
||||
// Camera needs to be started, see: QTMOBILITY-1566
|
||||
camera.load();
|
||||
QTRY_COMPARE(camera.status(), QCamera::LoadedStatus);
|
||||
#endif // Q_OS_SYMBIAN
|
||||
|
||||
//it should be possible to set exposure parameters in Unloaded state
|
||||
QCOMPARE(exposure->exposureCompensation()+1.0, 1.0);
|
||||
exposure->setExposureCompensation(1.0);
|
||||
@@ -591,7 +585,7 @@ void tst_QCameraBackend::testExposureCompensation()
|
||||
|
||||
void tst_QCameraBackend::testExposureMode()
|
||||
{
|
||||
#if !defined(Q_WS_MAEMO_6) && !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN)
|
||||
#if !defined(Q_WS_MAEMO_6)
|
||||
QSKIP("Capture exposure parameters are supported only on mobile platforms", SkipAll);
|
||||
#endif
|
||||
|
||||
@@ -603,12 +597,6 @@ void tst_QCameraBackend::testExposureMode()
|
||||
#endif
|
||||
QCOMPARE(exposure->exposureMode(), QCameraExposure::ExposureAuto);
|
||||
|
||||
#ifdef Q_OS_SYMBIAN
|
||||
// Camera needs to be started, see: QTMOBILITY-1566
|
||||
camera.load();
|
||||
QTRY_COMPARE(camera.status(), QCamera::LoadedStatus);
|
||||
#endif // Q_OS_SYMBIAN
|
||||
|
||||
// Night
|
||||
exposure->setExposureMode(QCameraExposure::ExposureNight);
|
||||
QCOMPARE(exposure->exposureMode(), QCameraExposure::ExposureNight);
|
||||
@@ -619,12 +607,6 @@ void tst_QCameraBackend::testExposureMode()
|
||||
camera.unload();
|
||||
QTRY_COMPARE(camera.status(), QCamera::UnloadedStatus);
|
||||
|
||||
#ifdef Q_OS_SYMBIAN
|
||||
// Camera needs to be started, see: QTMOBILITY-1566
|
||||
camera.load();
|
||||
QTRY_COMPARE(camera.status(), QCamera::LoadedStatus);
|
||||
#endif // Q_OS_SYMBIAN
|
||||
|
||||
#ifdef Q_WS_MAEMO_6
|
||||
//resource policy doesn't work correctly when resource is released and immediately requested again.
|
||||
QTest::qWait(250);
|
||||
|
||||
Reference in New Issue
Block a user