Automatic test added to check #6957

This commit is contained in:
Bertrand Songis
2019-11-15 13:28:24 +01:00
parent da040db3fd
commit 35d6ffc914
2 changed files with 14 additions and 3 deletions
+14 -3
View File
@@ -96,9 +96,7 @@ bool checkScreenshot(const QString & test)
}
}
#if defined(COLORLCD)
// TODO
#else
#if !defined(COLORLCD)
TEST(outdezNAtt, test_unsigned)
{
lcdClear();
@@ -238,6 +236,19 @@ TEST(Lcd, Midsize)
EXPECT_TRUE(checkScreenshot("midsize"));
}
TEST(Lcd, MidsizeNextPosPrec1)
{
lcdClear();
lcdDrawText(10, 1, "80", MIDSIZE);
lcdDrawText(lcdNextPos, 1, "V", MIDSIZE);
lcdDrawNumber(10, 15, 80, MIDSIZE | PREC1);
lcdDrawText(lcdNextPos, 15, "V", MIDSIZE);
EXPECT_TRUE(checkScreenshot("MidsizeNextPosPrec1"));
}
TEST(Lcd, Dblsize)
{
lcdClear();