Changeset View
Changeset View
Standalone View
Standalone View
autotests/exiv2extractortest.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
44 | QCOMPARE(result.types().size(), 1); | 44 | QCOMPARE(result.types().size(), 1); | ||
45 | QCOMPARE(result.types().constFirst(), Type::Image); | 45 | QCOMPARE(result.types().constFirst(), Type::Image); | ||
46 | 46 | | |||
47 | using namespace KFileMetaData::Property; | 47 | using namespace KFileMetaData::Property; | ||
48 | 48 | | |||
49 | QCOMPARE(result.properties().value(PhotoGpsLatitude).toDouble(), 41.411); | 49 | QCOMPARE(result.properties().value(PhotoGpsLatitude).toDouble(), 41.411); | ||
50 | QCOMPARE(result.properties().value(PhotoGpsLongitude).toDouble(), 2.173); | 50 | QCOMPARE(result.properties().value(PhotoGpsLongitude).toDouble(), 2.173); | ||
51 | QVERIFY(qAbs(result.properties().value(PhotoGpsAltitude).toDouble() - 12.2) < 0.0001); | 51 | QVERIFY(qAbs(result.properties().value(PhotoGpsAltitude).toDouble() - 12.2) < 0.0001); | ||
52 | 52 | QCOMPARE(result.properties().value(Artist).toString(), QStringLiteral("Artist")); | |||
53 | QCOMPARE(result.properties().value(Description).toString(), QStringLiteral("Description")); | ||||
54 | QCOMPARE(result.properties().value(Copyright).toString(), QStringLiteral("Copyright")); | ||||
55 | QCOMPARE(result.properties().value(Generator).toString(), QStringLiteral("digiKam-5.9.0")); | ||||
53 | } | 56 | } | ||
54 | 57 | | |||
55 | QTEST_GUILESS_MAIN(Exiv2ExtractorTest) | 58 | QTEST_GUILESS_MAIN(Exiv2ExtractorTest) |