summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-03 03:05:28 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-03 03:05:28 (GMT)
commita2bddc74ca9d0c09f7c79077e0fbd981f1e9eccb (patch)
treed870403b348b775d18dc7af6fb3ea9c6d375da03 /tests/auto/declarative/qdeclarativetextedit
parentc9e07d69ec084a75fc083baecd46d0b8b422d1c4 (diff)
downloadQt-a2bddc74ca9d0c09f7c79077e0fbd981f1e9eccb.zip
Qt-a2bddc74ca9d0c09f7c79077e0fbd981f1e9eccb.tar.gz
Qt-a2bddc74ca9d0c09f7c79077e0fbd981f1e9eccb.tar.bz2
Ensure error is received - the root object is INITIALLY zero.
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit')
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index b677fec..dea88c4 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -663,10 +663,12 @@ void tst_qdeclarativetextedit::delegateLoading()
QVERIFY(delegate);
view->setSource(QUrl("http://localhost:42332/cursorHttpTestFail1.qml"));
view->show();
+ QTRY_VERIFY(view->status()==QDeclarativeView::Error);
view->setFocus();
QTRY_VERIFY(!view->rootObject()); // there is fail item inside this test
view->setSource(QUrl("http://localhost:42332/cursorHttpTestFail2.qml"));
view->show();
+ QTRY_VERIFY(view->status()==QDeclarativeView::Error);
view->setFocus();
QTRY_VERIFY(!view->rootObject()); // there is fail item inside this test
//ErrorB should get a component which is ready but component.create() returns null