diff --git a/tests/ProgressBarCounterTest.cpp b/tests/ProgressBarCounterTest.cpp index afd28a0..db4ef26 100644 --- a/tests/ProgressBarCounterTest.cpp +++ b/tests/ProgressBarCounterTest.cpp @@ -18,6 +18,14 @@ void ProgressBarCounterTest::testFirstUpdatingProgress() QCOMPARE(progressBar.isRunning(), true); } +void ProgressBarCounterTest::testSecondUpdatingProgress() +{ + ProgressBarCounter progressBar(QLatin1String(""), max_); + progressBar.updateProgress(max_ / 4); + progressBar.updateProgress(max_ / 2); + QCOMPARE(progressBar.isRunning(), true); +} + void ProgressBarCounterTest::testStopping() { ProgressBarCounter progressBar(QLatin1String(""), max_); diff --git a/tests/ProgressBarCounterTest.h b/tests/ProgressBarCounterTest.h index c0b32e4..efd1d78 100644 --- a/tests/ProgressBarCounterTest.h +++ b/tests/ProgressBarCounterTest.h @@ -10,6 +10,8 @@ private Q_SLOTS: static void testFirstUpdatingProgress(); + static void testSecondUpdatingProgress(); + static void testStopping(); static void testReseting();