diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-06-12 04:23:28 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:34:01 -0500 |
commit | 229100ecde79f6f3d031eb618acccb5aa6195b22 (patch) | |
tree | f97440428c3a2112044ff8814cf03cb7002a117a /user/lokalize/tests.patch | |
parent | b05ce5add8948fa72697935d192aa78b5205cce4 (diff) | |
download | packages-229100ecde79f6f3d031eb618acccb5aa6195b22.tar.gz packages-229100ecde79f6f3d031eb618acccb5aa6195b22.tar.bz2 packages-229100ecde79f6f3d031eb618acccb5aa6195b22.tar.xz packages-229100ecde79f6f3d031eb618acccb5aa6195b22.zip |
user/[KDE Apps]: Update to 22.04.2
Diffstat (limited to 'user/lokalize/tests.patch')
-rw-r--r-- | user/lokalize/tests.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/user/lokalize/tests.patch b/user/lokalize/tests.patch new file mode 100644 index 000000000..cc0a4b457 --- /dev/null +++ b/user/lokalize/tests.patch @@ -0,0 +1,43 @@ +From 62849badfa30354435510c4dcf5ce0e7d644e934 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Sat, 11 Jun 2022 22:22:35 -0500 +Subject: [PATCH] tests: Fix Project model test for new column + +The Project model has a new column, "Comments", added in 2020. The +tests weren't updated to handle that and were failing because the column +numbers changed. + +Fixes: b1e37cc7dc95 ("Adding a comment feature on Project files") +--- + src/tests/projectmodeltest.cpp | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/src/tests/projectmodeltest.cpp b/src/tests/projectmodeltest.cpp +index 33e940f4..c8b55457 100644 +--- a/src/tests/projectmodeltest.cpp ++++ b/src/tests/projectmodeltest.cpp +@@ -54,6 +54,7 @@ void ProjectModelTest::testInvalid() + QCOMPARE(model->data(model->index(0, 7), Qt::DisplayRole), QString()); + QCOMPARE(model->data(model->index(0, 8), Qt::DisplayRole), QString()); + QCOMPARE(model->data(model->index(0, 9), Qt::DisplayRole), QString()); ++ QCOMPARE(model->data(model->index(0, 10), Qt::DisplayRole), QString()); + } + + void ProjectModelTest::testHalfTranslated() +@@ -85,9 +86,10 @@ void ProjectModelTest::testHalfTranslated() + QCOMPARE(model->data(model->index(0, 4), Qt::DisplayRole), 1); + QCOMPARE(model->data(model->index(0, 5), Qt::DisplayRole), 2); + QCOMPARE(model->data(model->index(0, 6), Qt::DisplayRole), 3); +- QCOMPARE(model->data(model->index(0, 7), Qt::DisplayRole), QStringLiteral("2019-05-20 03:26+0200")); +- QCOMPARE(model->data(model->index(0, 8), Qt::DisplayRole), QStringLiteral("2019-06-13 08:53+0300")); +- QCOMPARE(model->data(model->index(0, 9), Qt::DisplayRole), QStringLiteral("Alexander Potashev <aspotashev@gmail.com>")); ++ QCOMPARE(model->data(model->index(0, 7), Qt::DisplayRole), QStringLiteral()); ++ QCOMPARE(model->data(model->index(0, 8), Qt::DisplayRole), QStringLiteral("2019-05-20 03:26+0200")); ++ QCOMPARE(model->data(model->index(0, 9), Qt::DisplayRole), QStringLiteral("2019-06-13 08:53+0300")); ++ QCOMPARE(model->data(model->index(0, 10), Qt::DisplayRole), QStringLiteral("Alexander Potashev <aspotashev@gmail.com>")); + } + + QTEST_GUILESS_MAIN(ProjectModelTest) +-- +2.36.0 + |