┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-01-01 20:59:54 +0000
committerPeter Penz <[email protected]>2011-01-01 20:59:54 +0000
commit420b696c7ca51ecb5088036171694a6d865d5899 (patch)
tree462e25a22965d1fc50223238d44ab5e29943ffb2 /src/tests
parentf8a60e4d855219d6cb22b5016b705564d41dc4c0 (diff)
SVN_SILENT: Use same comment-style as the other unit-tests
svn path=/trunk/KDE/kdebase/apps/; revision=1210710
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/dolphinviewtest_allviewmodes.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests/dolphinviewtest_allviewmodes.cpp b/src/tests/dolphinviewtest_allviewmodes.cpp
index 2873e2c7e..38c323f4c 100644
--- a/src/tests/dolphinviewtest_allviewmodes.cpp
+++ b/src/tests/dolphinviewtest_allviewmodes.cpp
@@ -109,12 +109,17 @@ void DolphinViewTest_AllViewModes::testSelection() {
verifySelectedItemsCount(5);
}
+/**
+ * testKeyboardFocus() checks whether a view grabs the keyboard focus.
+ *
+ * A view may never grab the keyboard focus itself and must respect the focus-state
+ * when switching the view mode.
+ */
+
void DolphinViewTest_AllViewModes::testKeyboardFocus()
{
const DolphinView::Mode mode = m_view->mode();
- // The view may not grab the keyboard focus itself. Also when switching
- // the view-mode, the focus-state must remain.
QVERIFY(!m_view->hasFocus());
for (int i = 0; i <= DolphinView::MaxModeEnum; ++i) {
m_view->setMode(static_cast<DolphinView::Mode>(i));