summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/baselineexample
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-24 14:29:01 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-25 17:32:21 +0200
commitaaaf60aeab64c4e9189dae6925a89e0b367e3dcf (patch)
tree6c2f3d4217245c7a61244a62f599206bd59c0a67 /tests/auto/other/baselineexample
parentff453fa757c154e9234541c5cda47014a0803538 (diff)
Remove usage of deprecated qWaitForWindowShown(QWidget *) method.
Remove usages from autotests with the exception of widgets/kernel, widgets/widgets and widgets/graphicsview. Change-Id: I917b2857ed0cd07a6b3dbcd69244f558086c6586 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/other/baselineexample')
-rw-r--r--tests/auto/other/baselineexample/tst_baselineexample.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/other/baselineexample/tst_baselineexample.cpp b/tests/auto/other/baselineexample/tst_baselineexample.cpp
index 78e531a9f7..ca803c4189 100644
--- a/tests/auto/other/baselineexample/tst_baselineexample.cpp
+++ b/tests/auto/other/baselineexample/tst_baselineexample.cpp
@@ -70,7 +70,7 @@ void tst_BaselineExample::testBasicUsage()
QPushButton b("Press me!");
b.resize(100, 50);
b.show();
- QTest::qWaitForWindowShown(&b);
+ QVERIFY(QTest::qWaitForWindowExposed(&b));
QImage img1 = b.grab().toImage();
QVERIFY(!img1.isNull());
@@ -84,7 +84,7 @@ void tst_BaselineExample::testMultipleImages()
QPushButton b("Press me!");
b.resize(100, 50);
b.show();
- QTest::qWaitForWindowShown(&b);
+ QVERIFY(QTest::qWaitForWindowExposed(&b));
QBASELINE_CHECK(b.grab().toImage(), "text1");
b.setText("Kick me!");
@@ -110,7 +110,7 @@ void tst_BaselineExample::testDataDriven()
QPushButton b(label);
b.resize(100, 50);
b.show();
- QTest::qWaitForWindowShown(&b);
+ QVERIFY(QTest::qWaitForWindowExposed(&b));
QBASELINE_TEST(b.grab().toImage());
}
@@ -136,7 +136,7 @@ void tst_BaselineExample::testDataDrivenChecksum()
QPushButton b(label);
b.resize(100, 50);
b.show();
- QTest::qWaitForWindowShown(&b);
+ QVERIFY(QTest::qWaitForWindowExposed(&b));
QBASELINE_TEST(b.grab().toImage());
}