diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-03-10 11:30:10 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-03-10 11:30:10 (GMT) |
commit | 9e50f610b44778b8baf64ef569c574f067cc62b8 (patch) | |
tree | 007f7d55cad42ab3dd8849d897593fb598f2ea17 /tests/auto/qzip | |
parent | ab7939145a83884ba618440db9d887b272d48bbe (diff) | |
download | Qt-9e50f610b44778b8baf64ef569c574f067cc62b8.zip Qt-9e50f610b44778b8baf64ef569c574f067cc62b8.tar.gz Qt-9e50f610b44778b8baf64ef569c574f067cc62b8.tar.bz2 |
Add ability to read last mod.time for zip entry.
Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'tests/auto/qzip')
-rw-r--r-- | tests/auto/qzip/tst_qzip.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qzip/tst_qzip.cpp b/tests/auto/qzip/tst_qzip.cpp index f586f5e..cb3acf5 100644 --- a/tests/auto/qzip/tst_qzip.cpp +++ b/tests/auto/qzip/tst_qzip.cpp @@ -86,6 +86,8 @@ void tst_QZip::basicUnpack() QCOMPARE(fi.permissions,QFile::Permissions( QFile::ReadOwner | QFile::WriteOwner | QFile::ExeOwner | QFile::ReadUser | QFile::WriteUser | QFile::ExeUser )); + QCOMPARE(fi.lastModified, QDateTime::fromString("2005.11.11 13:08:02", "yyyy.MM.dd HH:mm:ss")); + fi = files.at(1); QVERIFY(fi.isValid()); QCOMPARE(fi.filePath, QString("test/test.txt")); @@ -96,6 +98,8 @@ void tst_QZip::basicUnpack() QVERIFY(fi.permissions == QFile::Permissions( QFile::ReadOwner | QFile::WriteOwner | QFile::ReadUser | QFile::WriteUser )); + QCOMPARE(fi.lastModified, QDateTime::fromString("2005.11.11 13:08:02", "yyyy.MM.dd HH:mm:ss")); + QCOMPARE(zip.fileData("test/test.txt"), QByteArray("content\n")); fi = files.at(-1); |