diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-12-22 00:05:06 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-12-22 22:54:56 (GMT) |
commit | f360cc9b521e5e3e7d4b896627b3257365c6ad3c (patch) | |
tree | 1082b32b852cd82c0d46b55445232b7deafa8cbd /tests/auto | |
parent | b461c315547b42293968219583187d83b2b25e0f (diff) | |
download | Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.zip Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.tar.gz Qt-f360cc9b521e5e3e7d4b896627b3257365c6ad3c.tar.bz2 |
Improve QDeclarativeComponent test coverage.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp | 15 |
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 8a19b8b..60ce46d 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); |