File indexing completed on 2025-01-26 05:06:20

0001 /*
0002     SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company <info@kdab.com>
0003     SPDX-FileContributor: 2017 Laurent Montel <laurent.montel@kdab.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "viewpropertiesmenutest.h"
0009 #include "viewpropertiesmenu.h"
0010 #include <QTest>
0011 QTEST_MAIN(ViewPropertiesMenuTest)
0012 
0013 void ViewPropertiesMenuTest::shouldHaveDefaultValues()
0014 {
0015     ViewPropertiesMenu m;
0016     QVERIFY(m.menu());
0017 
0018     QVERIFY(m.showLayoutActions());
0019     QVERIFY(m.showLockAction());
0020     QVERIFY(m.showIconSizeActions());
0021     QVERIFY(!m.locked());
0022     QVERIFY(!m.sortDesc());
0023     QVERIFY(!m.sortDirsFirst());
0024 }