diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-06-25 06:39:28 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-06-25 06:39:28 (GMT) |
commit | 543bbe2e122d1d3394ec589c32f9640d1fd88f3b (patch) | |
tree | e52df7bab7b4510fbebda5ca3577ee0f67fe516e /tests/auto/declarative/qdeclarativelistmodel | |
parent | 1d986e7f4c34fdcda2c1486a271a387ec08d3c46 (diff) | |
download | Qt-543bbe2e122d1d3394ec589c32f9640d1fd88f3b.zip Qt-543bbe2e122d1d3394ec589c32f9640d1fd88f3b.tar.gz Qt-543bbe2e122d1d3394ec589c32f9640d1fd88f3b.tar.bz2 |
Test QTBUG-11222
Task-number: QTBUG-11222
Diffstat (limited to 'tests/auto/declarative/qdeclarativelistmodel')
-rw-r--r-- | tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp index 3d66733..f15ac8f 100644 --- a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp +++ b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp @@ -559,6 +559,18 @@ void tst_qdeclarativelistmodel::error_data() QTest::newRow("QML elements not allowed in ListElement") << "import Qt 4.7\nListModel { ListElement { a: Item { } } }" << "ListElement: cannot contain nested elements"; + + QTest::newRow("qualified ListElement supported") + << "import Qt 4.7 as Foo\nFoo.ListModel { Foo.ListElement { a: 123 } }" + << ""; + + QTest::newRow("qualified ListElement required") + << "import Qt 4.7 as Foo\nFoo.ListModel { ListElement { a: 123 } }" + << "ListElement is not a type"; + + QTest::newRow("unknown qualified ListElement not allowed") + << "import Qt 4.7\nListModel { Foo.ListElement { a: 123 } }" + << "Foo.ListElement - Foo is not a namespace"; } void tst_qdeclarativelistmodel::error() |