Skip to content

Commit

Permalink
Fix failing tests from GroupPlotTest class by using only canvas for c…
Browse files Browse the repository at this point in the history
…omparison. Font seems to be too difficult to match between OSes.
  • Loading branch information
przemek83 committed Jan 12, 2025
1 parent 6bf2890 commit f263ed7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/GroupPlotTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void GroupPlotTest::testPlotWithData()

const QString expectedPath{
QString::fromLatin1(":/res/GroupPlotDefault.png")};
common::checkPlot(plot, expectedPath);
common::checkPlotCanvas(plot, expectedPath);
}

void GroupPlotTest::testPlotWithoutData()
Expand All @@ -49,5 +49,5 @@ void GroupPlotTest::testPlotWithoutData()

const QString expectedPath{
QString::fromLatin1(":/res/GroupPlotPlotWithoutData.png")};
common::checkPlot(plot, expectedPath);
common::checkPlotCanvas(plot, expectedPath);
}
Binary file modified tests/res/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/GroupPlotPlotWithoutData.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 f263ed7

Please sign in to comment.