From 1265e8862bec2d26c04e20c89ea7f089fb8b4933 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Sun, 29 Jul 2018 21:02:43 +0900 Subject: [PATCH] Test.cpp: Fix that tested windows did not close automatically --- Src/Test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Src/Test.cpp b/Src/Test.cpp index be1a8a5d8..c221572d5 100644 --- a/Src/Test.cpp +++ b/Src/Test.cpp @@ -214,6 +214,7 @@ TEST(CommandLineTest, Desc2) ASSERT_NE(nullptr, pDoc); EXPECT_EQ(L"TestL", pDoc->GetDescription(0)); EXPECT_EQ(L"TestR", pDoc->GetDescription(1)); + pDoc->m_ptBuf[1]->SetModified(false); pFrame->PostMessage(WM_CLOSE); } @@ -229,6 +230,7 @@ TEST(CommandLineTest, Desc3) ASSERT_NE(nullptr, pDoc); EXPECT_EQ(L"Theirs File", pDoc->GetDescription(0)); EXPECT_EQ(L"TestR", pDoc->GetDescription(1)); + pDoc->m_ptBuf[1]->SetModified(false); pFrame->PostMessage(WM_CLOSE); } @@ -244,6 +246,7 @@ TEST(CommandLineTest, Desc4) ASSERT_NE(nullptr, pDoc); EXPECT_EQ(L"TestL", pDoc->GetDescription(0)); EXPECT_EQ(L"Mine File", pDoc->GetDescription(1)); + pDoc->m_ptBuf[1]->SetModified(false); pFrame->PostMessage(WM_CLOSE); } -- 2.11.0