diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-03-03 03:05:28 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-03-03 03:05:28 (GMT) |
commit | a2bddc74ca9d0c09f7c79077e0fbd981f1e9eccb (patch) | |
tree | d870403b348b775d18dc7af6fb3ea9c6d375da03 /tests/auto/declarative/qdeclarativetextedit | |
parent | c9e07d69ec084a75fc083baecd46d0b8b422d1c4 (diff) | |
download | Qt-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.cpp | 2 |
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 |