fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kfile / tests / kdiroperatortest.cpp
blob405993b90cc09157259d8cc592a64134c6a25aa0
1 /* This file is part of the KDE libraries
2 Copyright (c) 2009 David Faure <faure@kde.org>
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2 of the License or ( at
7 your option ) version 3 or, at the discretion of KDE e.V. ( which shall
8 act as a proxy as in section 14 of the GPLv3 ), any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #include <kdebug.h>
22 #include <qtest_kde.h>
23 #include <kdiroperator.h>
25 /**
26 * Unit test for KDirOperator
28 class KDirOperatorTest : public QObject
30 Q_OBJECT
31 private Q_SLOTS:
32 void initTestCase()
36 void cleanupTestCase()
40 void testNoViewConfig()
42 KDirOperator dirOp;
43 // setIconsZoom tries to write config.
44 // Make sure it won't crash if setViewConfig() isn't called
45 dirOp.setIconsZoom(5);
46 QCOMPARE(dirOp.iconsZoom(), 5);
51 QTEST_KDEMAIN( KDirOperatorTest, GUI )
53 #include "kdiroperatortest.moc"