Changeset View
Changeset View
Standalone View
Standalone View
src/tests/dolphinsearchboxtest.cpp
Show All 37 Lines | |||||
38 | void DolphinSearchBoxTest::init() | 38 | void DolphinSearchBoxTest::init() | ||
39 | { | 39 | { | ||
40 | m_searchBox = new DolphinSearchBox(); | 40 | m_searchBox = new DolphinSearchBox(); | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | void DolphinSearchBoxTest::cleanup() | 43 | void DolphinSearchBoxTest::cleanup() | ||
44 | { | 44 | { | ||
45 | delete m_searchBox; | 45 | delete m_searchBox; | ||
46 | m_searchBox = nullptr; | ||||
46 | } | 47 | } | ||
47 | 48 | | |||
48 | /** | 49 | /** | ||
49 | * The test verifies whether the automatic clearing of the text works correctly. | 50 | * The test verifies whether the automatic clearing of the text works correctly. | ||
50 | * The text may not get cleared when the searchbox gets visible or invisible, | 51 | * The text may not get cleared when the searchbox gets visible or invisible, | ||
51 | * as this would clear the text when switching between tabs. | 52 | * as this would clear the text when switching between tabs. | ||
52 | */ | 53 | */ | ||
53 | void DolphinSearchBoxTest::testTextClearing() | 54 | void DolphinSearchBoxTest::testTextClearing() | ||
Show All 16 Lines |