OSDN Git Service

Test.cpp: Fix that tested windows did not close automatically
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 29 Jul 2018 12:02:43 +0000 (21:02 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 29 Jul 2018 12:02:43 +0000 (21:02 +0900)
Src/Test.cpp

index be1a8a5..c221572 100644 (file)
@@ -214,6 +214,7 @@ TEST(CommandLineTest, Desc2)
        ASSERT_NE(nullptr, pDoc);\r
        EXPECT_EQ(L"TestL", pDoc->GetDescription(0));\r
        EXPECT_EQ(L"TestR", pDoc->GetDescription(1));\r
+       pDoc->m_ptBuf[1]->SetModified(false);\r
        pFrame->PostMessage(WM_CLOSE);\r
 }\r
 \r
@@ -229,6 +230,7 @@ TEST(CommandLineTest, Desc3)
        ASSERT_NE(nullptr, pDoc);\r
        EXPECT_EQ(L"Theirs File", pDoc->GetDescription(0));\r
        EXPECT_EQ(L"TestR", pDoc->GetDescription(1));\r
+       pDoc->m_ptBuf[1]->SetModified(false);\r
        pFrame->PostMessage(WM_CLOSE);\r
 }\r
 \r
@@ -244,6 +246,7 @@ TEST(CommandLineTest, Desc4)
        ASSERT_NE(nullptr, pDoc);\r
        EXPECT_EQ(L"TestL", pDoc->GetDescription(0));\r
        EXPECT_EQ(L"Mine File", pDoc->GetDescription(1));\r
+       pDoc->m_ptBuf[1]->SetModified(false);\r
        pFrame->PostMessage(WM_CLOSE);\r
 }\r
 \r