summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qdeclarativecomponent
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-12-22 10:05:06 +1000
committerMichael Brasser <michael.brasser@nokia.com>2010-12-23 08:54:56 +1000
commitf360cc9b521e5e3e7d4b896627b3257365c6ad3c (patch)
tree1082b32b852cd82c0d46b55445232b7deafa8cbd /tests/auto/declarative/qdeclarativecomponent
parentb461c315547b42293968219583187d83b2b25e0f (diff)
downloadqt4-tools-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.tar.gz
Improve QDeclarativeComponent test coverage.
Diffstat (limited to 'tests/auto/declarative/qdeclarativecomponent')
-rw-r--r--tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp b/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
index 8a19b8bca1..60ce46d5cf 100644
--- a/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
+++ b/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
@@ -57,6 +57,7 @@ public:
tst_qdeclarativecomponent() { }
private slots:
+ void null();
void loadEmptyUrl();
void qmlCreateObject();
@@ -64,6 +65,20 @@ private:
QDeclarativeEngine engine;
};
+void tst_qdeclarativecomponent::null()
+{
+ {
+ QDeclarativeComponent c;
+ QVERIFY(c.isNull());
+ }
+
+ {
+ QDeclarativeComponent c(&engine);
+ QVERIFY(c.isNull());
+ }
+}
+
+
void tst_qdeclarativecomponent::loadEmptyUrl()
{
QDeclarativeComponent c(&engine);