[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] libs/widgets/tests: Adapt KoProgressUpdaterTest to accuracy of KoProgressUpdater update t
From: Friedrich W. H. Kossebau <kossebau () kde ! org>
Date: 2015-10-31 19:48:46
Message-ID: E1Zsc8s-0005BJ-Qk () scm ! kde ! org
[Download RAW message or body]
Git commit ba82b8c18f4dadb81d59d4256b83d6af4eef7adc by Friedrich W. H. Koss=
ebau.
Committed on 31/10/2015 at 19:48.
Pushed by kossebau into branch 'master'.
Adapt KoProgressUpdaterTest to accuracy of KoProgressUpdater update timer
M +2 -1 libs/widgets/tests/KoProgressUpdater_test.cpp
http://commits.kde.org/calligra/ba82b8c18f4dadb81d59d4256b83d6af4eef7adc
diff --git a/libs/widgets/tests/KoProgressUpdater_test.cpp b/libs/widgets/t=
ests/KoProgressUpdater_test.cpp
index fc33e17..c30f109 100644
--- a/libs/widgets/tests/KoProgressUpdater_test.cpp
+++ b/libs/widgets/tests/KoProgressUpdater_test.cpp
@@ -27,8 +27,9 @@
#include <QTest>
=
// KoProgressUpdater signal timer has interval of 250 ms, see PROGRESSUPDA=
TER_GUITIMERINTERVAL
+// Also is the timer of type Qt::CoarseTimer, which "tr[ies] to keep accur=
acy within 5% of the desired interval",
// so wait a little longer
-#define WAIT_FOR_PROGRESSUPDATER_UI_UPDATES 255
+#define WAIT_FOR_PROGRESSUPDATER_UI_UPDATES 275
=
class TestWeaverJob : public ThreadWeaver::Job
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic