diff options
author | abcd <qt-info@nokia.com> | 2011-10-13 18:46:00 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-14 03:46:50 +0200 |
commit | 28eb3ee2e75a735dfd3cf497d201da8d96a57aa0 (patch) | |
tree | dffeefe5e408fef45d784183c469e4e52e87224b /tests/auto/qplaceimage | |
parent | e8eef19963340225a9fc46b9a3b010cfac56ffc2 (diff) | |
download | qtlocation-28eb3ee2e75a735dfd3cf497d201da8d96a57aa0.tar.gz |
Add attribution field to Content class/element
Change-Id: I1cc07859f41aee40e8eb05d321a00a1417dd3970
Reviewed-on: http://codereview.qt-project.org/6584
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'tests/auto/qplaceimage')
-rw-r--r-- | tests/auto/qplaceimage/tst_qplaceimage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qplaceimage/tst_qplaceimage.cpp b/tests/auto/qplaceimage/tst_qplaceimage.cpp index 3aa8ecf0..1845e688 100644 --- a/tests/auto/qplaceimage/tst_qplaceimage.cpp +++ b/tests/auto/qplaceimage/tst_qplaceimage.cpp @@ -59,6 +59,7 @@ private Q_SLOTS: void urlTest(); void idTest(); void mimeTypeTest(); + void attributionTest(); void operatorsTest(); }; @@ -113,6 +114,16 @@ void tst_QPlaceImage::mimeTypeTest() QVERIFY2(testObj.mimeType() == "testText", "Wrong value returned"); } +void tst_QPlaceImage::attributionTest() +{ + QPlaceImage image; + QVERIFY(image.attribution().isEmpty()); + image.setAttribution(QLatin1String("Brought to you by acme")); + QCOMPARE(image.attribution(), QLatin1String("Brought to you by acme")); + image.setAttribution(QString()); + QVERIFY(image.attribution().isEmpty()); +} + void tst_QPlaceImage::operatorsTest() { QPlaceImage testObj; |