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