Skip to content

Commit

Permalink
Remove commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 5, 2025
1 parent e0288f7 commit a8a310f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
29 changes: 0 additions & 29 deletions tests/ProgressBarCounterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
6 changes: 0 additions & 6 deletions tests/ProgressBarCounterTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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};
};

0 comments on commit a8a310f

Please sign in to comment.