| 1 |
// SPDX-FileCopyrightText: 2019 - 2026 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
//#include "test_cweekdaybackgrounditem.h" |
| 6 |
|
| 7 |
//test_CWeekDayBackgroundItem::test_CWeekDayBackgroundItem() |
| 8 |
//{ |
| 9 |
//} |
| 10 |
|
| 11 |
//void test_CWeekDayBackgroundItem::SetUp() |
| 12 |
//{ |
| 13 |
// m_weekItem = new CWeekDayBackgroundItem(); |
| 14 |
//} |
| 15 |
|
| 16 |
//void test_CWeekDayBackgroundItem::TearDown() |
| 17 |
//{ |
| 18 |
// delete m_weekItem; |
| 19 |
// m_weekItem = nullptr; |
| 20 |
//} |
| 21 |
|
| 22 |
////showFocus |
| 23 |
//TEST_F(test_CWeekDayBackgroundItem, showFocus) |
| 24 |
//{ |
| 25 |
// m_weekItem->setShowFocus(true); |
| 26 |
// ASSERT_TRUE(m_weekItem->showFocus()); |
| 27 |
// m_weekItem->setShowFocus(false); |
| 28 |
// ASSERT_FALSE(m_weekItem->showFocus()); |
| 29 |
//} |
| 30 |
|
| 31 |
////setItemFocus |
| 32 |
//TEST_F(test_CWeekDayBackgroundItem, setItemFocus) |
| 33 |
//{ |
| 34 |
// m_weekItem->setItemFocus(true); |
| 35 |
//} |
| 36 |
|
| 37 |
////hasNextSubItem |
| 38 |
//TEST_F(test_CWeekDayBackgroundItem, hasNextSubItem) |
| 39 |
//{ |
| 40 |
// bool hasNextSub; |
| 41 |
// hasNextSub = m_weekItem->hasNextSubItem(); |
| 42 |
// ASSERT_FALSE(hasNextSub); |
| 43 |
//} |
| 44 |
|
| 45 |
////drawDividingLine |
| 46 |
//TEST_F(test_CWeekDayBackgroundItem, drawDividingLine) |
| 47 |
//{ |
| 48 |
// m_weekItem->setDrawDividingLine(false); |
| 49 |
// ASSERT_FALSE(m_weekItem->drawDividingLine()); |
| 50 |
// m_weekItem->setDrawDividingLine(true); |
| 51 |
// ASSERT_TRUE(m_weekItem->drawDividingLine()); |
| 52 |
//} |