Skip to content

Commit

Permalink
Comment out image saving in BasicDataPlotTest to avoid OS-specific is…
Browse files Browse the repository at this point in the history
…sues.
  • Loading branch information
przemek83 committed Jan 12, 2025
1 parent 99bd728 commit b508e80
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/BasicDataPlotTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ void BasicDataPlotTest::testPlotWithData()
BasicDataPlot plot;
preparePlot(plot);

const QImage actual{plot.grab().toImage()};
actual.save("BasicDataPlotDefault.png");
// const QImage actual{plot.grab().toImage()};
// actual.save("BasicDataPlotDefault.png");

const QString expectedPath{QString::fromLatin1("BasicDataPlotDefault.png")};
common::checkPlot(plot, expectedPath);
Expand All @@ -77,8 +77,8 @@ void BasicDataPlotTest::testPlotWithoutData()
plot.setNewData({}, quantiles, regressionPoints);
plot.resize(common::getPlotSize());

const QImage actual{plot.grab().toImage()};
actual.save("BasicDataPlotEmpty.png");
// const QImage actual{plot.grab().toImage()};
// actual.save("BasicDataPlotEmpty.png");

const QString expectedPath{QString::fromLatin1("BasicDataPlotEmpty.png")};
common::checkPlot(plot, expectedPath);
Expand All @@ -93,8 +93,8 @@ void BasicDataPlotTest::testLegendItemsChecking()
emit legend->checked(common::getItemInfo(plot, QStringLiteral("Q25")),
false, 0);

const QImage actual{plot.grab().toImage()};
actual.save("BasicDataPlotItemChecked.png");
// const QImage actual{plot.grab().toImage()};
// actual.save("BasicDataPlotItemChecked.png");

const QString expectedPath{
QString::fromLatin1("BasicDataPlotItemChecked.png")};
Expand Down
Binary file modified tests/res/unix-like/GroupPlotDefault.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/unix-like/GroupPlotPlotWithoutData.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/unix-like/HistogramPlotDefault.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/unix-like/HistogramPlotItemChecked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/unix-like/HistogramPlotWithoutData.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/res/unix-like/QuantilesPlotDefault.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b508e80

Please sign in to comment.