Changeset View
Changeset View
Standalone View
Standalone View
autotests/propertyinfotest.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
89 | // make tests on windows happy: QChar(0x00B0) = "°" | 89 | // make tests on windows happy: QChar(0x00B0) = "°" | ||
90 | QCOMPARE(latitude.formatAsDisplayString(QVariant(25)), QString(QLocale().toString(25) + QChar(0x00B0))); | 90 | QCOMPARE(latitude.formatAsDisplayString(QVariant(25)), QString(QLocale().toString(25) + QChar(0x00B0))); | ||
91 | 91 | | |||
92 | PropertyInfo longitude(Property::PhotoGpsLongitude); | 92 | PropertyInfo longitude(Property::PhotoGpsLongitude); | ||
93 | QCOMPARE(longitude.formatAsDisplayString(QVariant(13.5)), QString(QLocale().toString(13.5) + QChar(0x00B0))); | 93 | QCOMPARE(longitude.formatAsDisplayString(QVariant(13.5)), QString(QLocale().toString(13.5) + QChar(0x00B0))); | ||
94 | 94 | | |||
95 | PropertyInfo framerate(Property::FrameRate); | 95 | PropertyInfo framerate(Property::FrameRate); | ||
96 | QCOMPARE(framerate.formatAsDisplayString(QVariant(23)), QStringLiteral("23 fps")); | 96 | QCOMPARE(framerate.formatAsDisplayString(QVariant(23)), QStringLiteral("23 fps")); | ||
97 | QCOMPARE(framerate.formatAsDisplayString(QVariant(23.976)), QStringLiteral("23.98 fps")); | ||||
97 | } | 98 | } | ||
98 | 99 | | |||
99 | QTEST_GUILESS_MAIN(PropertyInfoTest) | 100 | QTEST_GUILESS_MAIN(PropertyInfoTest) |