File indexing completed on 2024-12-22 04:46:00

0001 #include "myaccountpersonalaccesstokentreeviewtest.h"
0002 #include "myaccount/myaccountpersonalaccesstokentreeview.h"
0003 #include <QTest>
0004 QTEST_MAIN(MyAccountPersonalAccessTokenTreeViewTest)
0005 MyAccountPersonalAccessTokenTreeViewTest::MyAccountPersonalAccessTokenTreeViewTest(QObject *parent)
0006     : QObject{parent}
0007 {
0008 }
0009 
0010 void MyAccountPersonalAccessTokenTreeViewTest::shouldHaveDefaultValues()
0011 {
0012     MyAccountPersonalAccessTokenTreeView w(nullptr);
0013     QVERIFY(w.alternatingRowColors());
0014     QCOMPARE(w.selectionMode(), QAbstractItemView::SingleSelection);
0015     QCOMPARE(w.selectionBehavior(), QAbstractItemView::SelectRows);
0016     QVERIFY(!w.rootIsDecorated());
0017     QVERIFY(w.isSortingEnabled());
0018     QCOMPARE(w.contextMenuPolicy(), Qt::CustomContextMenu);
0019 }
0020 
0021 #include "moc_myaccountpersonalaccesstokentreeviewtest.cpp"