diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-08-22 11:41:55 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-22 14:21:23 +0200 |
commit | bffd219c599a9feae521dd9a709b2e20663f49ac (patch) | |
tree | e1a51c02936fd77d6830f68f3b915bda0ad90f0f /tests/auto/quick | |
parent | 26ea8e01e9ee2a8c8c09266147b94c9ac92d09f9 (diff) |
Port away from qWaitForWindowShown.
It is deprecated.
Change-Id: Icf29b1f5ab6cb06ee7fd375fb96242df7ee3083e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r-- | tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp index 7b9809908d..60f7469aa5 100644 --- a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp +++ b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp @@ -5651,8 +5651,8 @@ void tst_qquicktextinput::backspaceSurrogatePairs() textInput->setParentItem(window.contentItem()); window.show(); window.requestActivateWindow(); - QTest::qWaitForWindowShown(&window); - QTRY_COMPARE(QGuiApplication::focusWindow(), &window); + QVERIFY(QTest::qWaitForWindowActive(&window)); + QCOMPARE(QGuiApplication::focusWindow(), &window); for (int i = text.length(); i >= 0; i -= 2) { QCOMPARE(textInput->text(), text.mid(0, i)); |