Skip to content

Commit e0c9558

Browse files
authored
Increase the test setting parameters to avoid being less than the minimum height and width in Main.qml (#689)
This test case failed because minimumWidth and minimumHeight are both set to 300 in Main.qml. It can not work when we set them to 100 and 200 seperately. So ,incresing the test parameters is a good way to let it work. Signed-off-by: momo <2438833481@qq.com>
1 parent fc92574 commit e0c9558

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MainWindow_TEST.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ TEST(MainWindowTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ApplyConfig))
742742
WindowConfig c;
743743
// c.posX = 1000;
744744
// c.posY = 2000;
745-
c.width = 100;
746-
c.height = 200;
745+
c.width = 300;
746+
c.height = 400;
747747
c.materialTheme = "Dark";
748748
c.materialPrimary = "#ff0000";
749749
c.materialAccent = "Indigo";
@@ -765,8 +765,8 @@ TEST(MainWindowTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ApplyConfig))
765765
// EXPECT_NE(c.posX, 1000);
766766
// EXPECT_NE(c.posY, 2000);
767767

768-
EXPECT_EQ(c.width, 100);
769-
EXPECT_EQ(c.height, 200);
768+
EXPECT_EQ(c.width, 300);
769+
EXPECT_EQ(c.height, 400);
770770
EXPECT_EQ(c.materialTheme, "Dark");
771771
EXPECT_EQ(c.materialPrimary, "#ff0000");
772772
// Always save hex

0 commit comments

Comments
 (0)