summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-17 05:29:06 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-17 05:29:40 (GMT)
commitcc621ba462331ad936f47c44c22030392caa574f (patch)
tree3b47b18d3ac6c85532c07c686cc3e9953815a2eb /tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
parentbba51197a1f99a5c77c2747de2ecd399fdb638a0 (diff)
downloadQt-cc621ba462331ad936f47c44c22030392caa574f.zip
Qt-cc621ba462331ad936f47c44c22030392caa574f.tar.gz
Qt-cc621ba462331ad936f47c44c22030392caa574f.tar.bz2
Auto test for QTBUG-11507
Diffstat (limited to 'tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp b/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
index 06561fa..e3e0ba0 100644
--- a/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
+++ b/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
@@ -76,6 +76,7 @@ private slots:
void openUrlExternally();
void md5();
void createComponent();
+ void createComponent_pragmaLibrary();
void createQmlObject();
void consoleLog();
void formatting();
@@ -361,6 +362,16 @@ void tst_qdeclarativeqt::createComponent()
delete object;
}
+void tst_qdeclarativeqt::createComponent_pragmaLibrary()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("createComponent_lib.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QEXPECT_FAIL("", "QTBUG-11507", Continue);
+ QCOMPARE(object->property("status").toInt(), int(QDeclarativeComponent::Ready));
+}
+
void tst_qdeclarativeqt::createQmlObject()
{
QDeclarativeComponent component(&engine, TEST_FILE("createQmlObject.qml"));