Changeset View
Changeset View
Standalone View
Standalone View
autotests/propertyinfotest.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
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 | QCOMPARE(framerate.formatAsDisplayString(QVariant(23.976)), QStringLiteral("23.98 fps")); | ||
95 | | ||||
96 | PropertyInfo aspectRatio(Property::AspectRatio); | ||||
97 | QCOMPARE(aspectRatio.formatAsDisplayString(QVariant(1.77778)), QStringLiteral("1.78:1")); | ||||
95 | } | 98 | } | ||
96 | 99 | | |||
97 | QTEST_GUILESS_MAIN(PropertyInfoTest) | 100 | QTEST_GUILESS_MAIN(PropertyInfoTest) |