MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / testEmptyQueryDisablesFind

Function testEmptyQueryDisablesFind

tests/help_dialog_test.cpp:158–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void testEmptyQueryDisablesFind()
159{
160 QTemporaryFile file;
161 const bool wrote = writeTempHelp(file);
162 report("temp help document created", wrote);
163 if (!wrote)
164 return;
165
166 HelpDialog dialog("Search Test", file.fileName());
167 HelpWidgets widgets = findWidgets(dialog);
168 if (!requireWidgets(widgets))
169 return;
170
171 report("find button starts disabled", !widgets.button->isEnabled());
172 widgets.edit->setText("target");
173 report("find button enables", widgets.button->isEnabled());
174 widgets.edit->clear();
175 report("find button disables when query clears", !widgets.button->isEnabled());
176}
177
178} // namespace
179

Callers 1

mainFunction · 0.85

Calls 6

writeTempHelpFunction · 0.85
findWidgetsFunction · 0.85
requireWidgetsFunction · 0.85
reportFunction · 0.70
isEnabledMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected