File indexing completed on 2024-03-24 15:33:36

0001 /*
0002     SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz@gmx.at>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef URLNAVIGATORTEST_H
0008 #define URLNAVIGATORTEST_H
0009 
0010 #include <QObject>
0011 #include <kiofilewidgets_export.h>
0012 class KUrlNavigator;
0013 
0014 class KUrlNavigatorTest : public QObject
0015 {
0016     Q_OBJECT
0017 
0018 private Q_SLOTS:
0019     void initTestCase();
0020     void cleanupTestCase();
0021 
0022     void testHistorySizeAndIndex();
0023     void testGoBack();
0024     void testGoForward();
0025     void testHistoryInsert();
0026 
0027     void bug251553_goUpFromArchive();
0028 
0029     void testUrlParsing_data();
0030     void testUrlParsing();
0031 
0032     void testRelativePaths();
0033 
0034     void testFixUrlPath_data();
0035     void testFixUrlPath();
0036 
0037 #if KIOFILEWIDGETS_BUILD_DEPRECATED_SINCE(4, 5)
0038     void testButtonUrl_data();
0039     void testButtonUrl();
0040 #endif
0041     void testButtonText();
0042 
0043     void testInitWithRedundantPathSeparators();
0044 
0045 private:
0046     KUrlNavigator *m_navigator;
0047 };
0048 
0049 #endif