Permalink
Browse files

ui/test: fix AddFixture unit for one more generic item is available now

  • Loading branch information...
mcallegari committed Jan 10, 2019
1 parent 48e60fa commit 57656e53419169533100192fca864ac36e0e3fbe
Showing with 4 additions and 4 deletions.
  1. +4 −4 ui/test/addfixture/addfixture_test.cpp
@@ -160,7 +160,7 @@ void AddFixture_Test::initialNoFixture()
else
{
QCOMPARE(i, af.m_tree->topLevelItemCount() - 1); // Generic should be last
QCOMPARE(top->childCount(), 3);
QCOMPARE(top->childCount(), 4);
QCOMPARE(top->child(0)->text(0), QString(KXMLFixtureGeneric));

QStringList models(m_doc->fixtureDefCache()->models(top->text(0)));
@@ -251,7 +251,7 @@ void AddFixture_Test::initialDimmer()
else
{
QCOMPARE(i, af.m_tree->topLevelItemCount() - 1); // Generic should be last
QCOMPARE(top->childCount(), 3);
QCOMPARE(top->childCount(), 4);
QCOMPARE(top->child(0)->text(0), QString(KXMLFixtureGeneric));

QStringList models(m_doc->fixtureDefCache()->models(top->text(0)));
@@ -351,7 +351,7 @@ void AddFixture_Test::initialScanner()
else
{
QCOMPARE(i, af.m_tree->topLevelItemCount() - 1); // Generic should be last
QCOMPARE(top->childCount(), 3);
QCOMPARE(top->childCount(), 4);
QCOMPARE(top->child(0)->text(0), QString(KXMLFixtureGeneric));

QStringList models(m_doc->fixtureDefCache()->models(top->text(0)));
@@ -447,7 +447,7 @@ void AddFixture_Test::selectionGeneric()
QTreeWidgetItem* item = af.m_tree->topLevelItem(af.m_tree->topLevelItemCount() - 1);
QVERIFY(item != NULL);
// First, select the parent node so that selectionChanged() fires
QCOMPARE(item->childCount(), 3);
QCOMPARE(item->childCount(), 4);
af.m_tree->setCurrentItem(item);
// Then, select the child to fire again
item = item->child(0);

0 comments on commit 57656e5

Please sign in to comment.