[versit] Ensure VCARD output is deterministic
authorMatt Vogt <matthew.vogt@jollamobile.com>
Mon, 14 Jul 2014 03:27:05 +0000 (13:27 +1000)
committerMatthew Vogt <matthew.vogt@qinetic.com.au>
Wed, 16 Jul 2014 05:43:33 +0000 (07:43 +0200)
commit69065fa9fd53ea6955537f5b5dad7f5b88ec2071
tree2bb909118fc0b5066456bb605e858272ef533611
parent73db06da08ee94a62cc4a4af5dbafa7ba288db69
[versit] Ensure VCARD output is deterministic

Sort the parameters emitted by the VCARD writers so ensure that the
results are deterministic for testing purposes. The specification
does not constrain ordering, so this change is required only to
make the test code simple and robust.

Also sort some QDebug output values for the same reason.

Task-number: QTBUG-25382

Change-Id: Ifcebc4c13fc1c3b6cb963235c55b83cee1a65571
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
src/organizer/filters/qorganizeritemcollectionfilter_p.h
src/organizer/qorganizerrecurrencerule.cpp
src/versit/qvcard21writer.cpp
src/versit/qvcard30writer.cpp
tests/auto/organizer/qorganizeritem/tst_qorganizeritem.cpp
tests/auto/organizer/qorganizeritemfilter/tst_qorganizeritemfilter.cpp
tests/auto/versit/qvcard21writer/tst_qvcard21writer.cpp
tests/auto/versit/qvcard30writer/tst_qvcard30writer.cpp