From a8a310f0585eb9288e61430153f6c4fae31d88e9 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:48:25 +0100 Subject: [PATCH] Remove commented code. --- tests/ProgressBarCounterTest.cpp | 29 ----------------------------- tests/ProgressBarCounterTest.h | 6 ------ 2 files changed, 35 deletions(-) diff --git a/tests/ProgressBarCounterTest.cpp b/tests/ProgressBarCounterTest.cpp index dd86023..98cebfe 100644 --- a/tests/ProgressBarCounterTest.cpp +++ b/tests/ProgressBarCounterTest.cpp @@ -37,32 +37,3 @@ void ProgressBarCounterTest::testReseting() ProgressBarCounter progressBar(QString::fromLatin1(""), max_); ProgressBarCommon::checkReseting(progressBar); } - -// void ProgressBarCounterTest::checkInitialPaint() -// { -// ProgressBarCounter progressBar(QLatin1String("Initial"), max_); -// auto actual{progressBar.grab().toImage()}; -// QImage expected(":/res/counterInitial.png"); -// expected = expected.convertToFormat(actual.format()); -// QCOMPARE(actual, expected); -// } - -// void ProgressBarCounterTest::checkPaintAfterUpdate() -// { -// ProgressBarCounter progressBar(QLatin1String("Updated"), max_); -// progressBar.updateProgress(10); -// auto actual{progressBar.grab().toImage()}; -// QImage expected(":/res/counterUpdated.png"); -// expected = expected.convertToFormat(actual.format()); -// QCOMPARE(actual, expected); -// } - -// void ProgressBarCounterTest::checkPaintFinished() -// { -// ProgressBarCounter progressBar(QLatin1String("Finished"), max_); -// progressBar.updateProgress(100); -// auto actual{progressBar.grab().toImage()}; -// QImage expected(":/res/counterFinished.png"); -// expected = expected.convertToFormat(actual.format()); -// QCOMPARE(actual, expected); -// } diff --git a/tests/ProgressBarCounterTest.h b/tests/ProgressBarCounterTest.h index 1279a03..e9467d1 100644 --- a/tests/ProgressBarCounterTest.h +++ b/tests/ProgressBarCounterTest.h @@ -16,12 +16,6 @@ private Q_SLOTS: static void testReseting(); - // static void checkInitialPaint(); - - // static void checkPaintAfterUpdate(); - - // static void checkPaintFinished(); - private: static constexpr int max_{100}; };