summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-02-14 13:03:16 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-15 02:36:47 +0100
commit1acc490248655d7a2db5835f6f9ac0c68d6df454 (patch)
tree64c3e560163a1c5936e821766971e5293fbb4357 /tests/auto/widgets/kernel
parent22e0060e596c73e614f88f1269893214cf24bf6a (diff)
Eliminate duplicate data row names in widgets autotests.
Change-Id: I82bab3cc39320014fac6732c7b60233b262cb30d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
-rw-r--r--tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp12
-rw-r--r--tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp21
2 files changed, 16 insertions, 17 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
index d9f4081ed3..7017c6157e 100644
--- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
+++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
@@ -380,16 +380,16 @@ void tst_QApplication::setFont_data()
++cnt;
}
- QTest::newRow("nonexistingfont") << "nosuchfont_probably_quiteunlikely"
+ QTest::newRow("nonexistingfont after") << "nosuchfont_probably_quiteunlikely"
<< 0 << false;
- QTest::newRow("nonexistingfont") << "nosuchfont_probably_quiteunlikely"
+ QTest::newRow("nonexistingfont before") << "nosuchfont_probably_quiteunlikely"
<< 0 << true;
- QTest::newRow("largescaleable") << "smoothtimes" << 100 << false;
- QTest::newRow("largescaleable") << "smoothtimes" << 100 << true;
+ QTest::newRow("largescaleable after") << "smoothtimes" << 100 << false;
+ QTest::newRow("largescaleable before") << "smoothtimes" << 100 << true;
- QTest::newRow("largeunscaleale") << "helvetica" << 100 << false;
- QTest::newRow("largeunscaleale") << "helvetica" << 100 << true;
+ QTest::newRow("largeunscaleale after") << "helvetica" << 100 << false;
+ QTest::newRow("largeunscaleale before") << "helvetica" << 100 << true;
}
void tst_QApplication::setFont()
diff --git a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
index c8e5591f8b..c43ea065f3 100644
--- a/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
+++ b/tests/auto/widgets/kernel/qgridlayout/tst_qgridlayout.cpp
@@ -797,6 +797,16 @@ void tst_QGridLayout::minMaxSize_data()
<< SizeInfo(QPoint(10, 10), QSize( 90, 90), QSize(100,100))
<< SizeInfo(QPoint(10 + 100 + 1, 10), QSize( 90, 90))
);
+ QTest::newRow("2x1 grid, extend to minimumSize, motif") << QString::fromAscii("motif") << 2 << 1
+ << int(QSizePolicy::Preferred) << QSize() << (SizeInfoList()
+ << SizeInfo(QPoint(11, 11), QSize( 90, 90), QSize(100,100))
+ << SizeInfo(QPoint(11 + 100 + 6, 11), QSize( 90, 90))
+ );
+ QTest::newRow("2x1 grid, extend to minimumSize, windows") << QString::fromAscii("windows") << 2 << 1
+ << int(QSizePolicy::Preferred) << QSize() << (SizeInfoList()
+ << SizeInfo(QPoint(11, 11), QSize( 90, 90), QSize(100,100))
+ << SizeInfo(QPoint(11 + 100 + 6, 11), QSize( 90, 90))
+ );
QTest::newRow("1x2 grid, extend to minimumSize") << QString() << 1 << 2
<< int(QSizePolicy::Preferred) << QSize() << (SizeInfoList()
<< SizeInfo(QPoint(10, 10), QSize( 90, 90), QSize(100,100))
@@ -818,17 +828,6 @@ void tst_QGridLayout::minMaxSize_data()
<< SizeInfo(QPoint(10, 10 + 100 + 1), QSize(100,100), QSize(), QSize(), 100*100)
<< SizeInfo(QPoint(10, 10 + 100 + 1 + 50 + 1), QSize(100,100), QSize(), QSize(100, 100))
);
- QTest::newRow("2x1 grid, extend to minimumSize") << QString::fromAscii("motif") << 2 << 1
- << int(QSizePolicy::Preferred) << QSize() << (SizeInfoList()
- << SizeInfo(QPoint(11, 11), QSize( 90, 90), QSize(100,100))
- << SizeInfo(QPoint(11 + 100 + 6, 11), QSize( 90, 90))
- );
- QTest::newRow("2x1 grid, extend to minimumSize") << QString::fromAscii("windows") << 2 << 1
- << int(QSizePolicy::Preferred) << QSize() << (SizeInfoList()
- << SizeInfo(QPoint(11, 11), QSize( 90, 90), QSize(100,100))
- << SizeInfo(QPoint(11 + 100 + 6, 11), QSize( 90, 90))
- );
-
}
void tst_QGridLayout::minMaxSize()