diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-10-15 04:07:24 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-10-15 04:07:24 (GMT) |
commit | 0f97a4fbcab5972f47a8a6cc3b501446df94bedb (patch) | |
tree | 2f481fb4dab033b42649c9453b0409d0825a1792 /tests/auto/declarative/qfxtextedit | |
parent | 25f5008d6bc6788e68e34f24af196f12de052567 (diff) | |
download | Qt-0f97a4fbcab5972f47a8a6cc3b501446df94bedb.zip Qt-0f97a4fbcab5972f47a8a6cc3b501446df94bedb.tar.gz Qt-0f97a4fbcab5972f47a8a6cc3b501446df94bedb.tar.bz2 |
Add cursorDelegate test to QFxTextInput autotests
Also cleaned up the QFxTextEdit version, and fixed a bug the new test
uncovered.
Diffstat (limited to 'tests/auto/declarative/qfxtextedit')
-rw-r--r-- | tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp index 1433bf2..f78e564 100644 --- a/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp +++ b/tests/auto/declarative/qfxtextedit/tst_qfxtextedit.cpp @@ -433,10 +433,10 @@ void tst_qfxtextedit::selection() void tst_qfxtextedit::cursorDelegate() { - QmlView* view = new QmlView(0); - view->show(); - view->setUrl(QUrl("data/cursorTest.qml")); + QmlView* view = createView(SRCDIR "/data/cursorTest.qml"); view->execute(); + view->show(); + view->setFocus(); QFxTextEdit *textEditObject = view->root()->findChild<QFxTextEdit*>("textEditObject"); QVERIFY(textEditObject != 0); QVERIFY(textEditObject->findChild<QFxItem*>("cursorInstance")); |