summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtabwidget/tst_qtabwidget.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-05-20 19:45:38 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-05-20 19:46:19 +0200
commitd671acd5b296b83440db9836a92189c501c87ff3 (patch)
treebd9c1a000e17c70124c207666cfb3276b5518ffd /tests/auto/qtabwidget/tst_qtabwidget.cpp
parent42f5786104f9eef9542df2c7469a03324978281d (diff)
parent4f2138ecfbdc58e5cb5b0c7d762197ef69752957 (diff)
Merge remote branch 'staging/master' into refactor
Conflicts: src/opengl/qgl_qpa.cpp src/plugins/platforms/glxconvenience/qglxconvenience.cpp src/plugins/platforms/platforms.pro src/plugins/platforms/wayland/qwaylandwindow.cpp src/plugins/platforms/xcb/qxcbwindow.cpp src/plugins/platforms/xcb/qxcbwindow.h src/plugins/platforms/xcb/qxcbwindowsurface.cpp src/widgets/kernel/qwidget_qpa.cpp tests/auto/qvariant/tst_qvariant.cpp
Diffstat (limited to 'tests/auto/qtabwidget/tst_qtabwidget.cpp')
-rw-r--r--tests/auto/qtabwidget/tst_qtabwidget.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/tests/auto/qtabwidget/tst_qtabwidget.cpp b/tests/auto/qtabwidget/tst_qtabwidget.cpp
index 252450cc71..c305150af4 100644
--- a/tests/auto/qtabwidget/tst_qtabwidget.cpp
+++ b/tests/auto/qtabwidget/tst_qtabwidget.cpp
@@ -381,9 +381,6 @@ void tst_QTabWidget::currentIndex()
{
// Test bad arguments
QSignalSpy spy(tw, SIGNAL(currentChanged(int)));
-#ifdef QT3_SUPPORT
- QSignalSpy spySupport(tw, SIGNAL(currentChanged(QWidget *)));
-#endif
QCOMPARE(tw->currentIndex(), -1);
tw->setCurrentIndex(-1);
QCOMPARE(tw->currentIndex(), -1);
@@ -395,10 +392,7 @@ void tst_QTabWidget::currentIndex()
QCOMPARE(spy.count(), 1);
QList<QVariant> arguments = spy.takeFirst();
QVERIFY(arguments.at(0).toInt() == firstIndex);
-#ifdef QT3_SUPPORT
- QCOMPARE(spySupport.count(), 1);
-#endif
-
+
int index = addPage();
QCOMPARE(tw->currentIndex(), firstIndex);
tw->setCurrentIndex(index);
@@ -406,28 +400,18 @@ void tst_QTabWidget::currentIndex()
QCOMPARE(spy.count(), 1);
arguments = spy.takeFirst();
QVERIFY(arguments.at(0).toInt() == index);
-#ifdef QT3_SUPPORT
- QCOMPARE(spySupport.count(), 2);
-#endif
-
+
removePage(index);
QCOMPARE(tw->currentIndex(), firstIndex);
QCOMPARE(spy.count(), 1);
arguments = spy.takeFirst();
QVERIFY(arguments.at(0).toInt() == firstIndex);
-#ifdef QT3_SUPPORT
- QCOMPARE(spySupport.count(), 3);
-#endif
removePage(firstIndex);
QCOMPARE(tw->currentIndex(), -1);
QCOMPARE(spy.count(), 1);
arguments = spy.takeFirst();
QVERIFY(arguments.at(0).toInt() == -1);
-#ifdef QT3_SUPPORT
- QCOMPARE(spySupport.count(), 4);
-#endif
-
}
void tst_QTabWidget::cornerWidget()