diff options
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativexmllistmodel/data/roleErrors.qml')
-rw-r--r-- | tests/auto/qtquick1/qdeclarativexmllistmodel/data/roleErrors.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qtquick1/qdeclarativexmllistmodel/data/roleErrors.qml b/tests/auto/qtquick1/qdeclarativexmllistmodel/data/roleErrors.qml new file mode 100644 index 0000000000..a0d846f188 --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativexmllistmodel/data/roleErrors.qml @@ -0,0 +1,10 @@ +import QtQuick 1.0 + +XmlListModel { + source: "model.xml" + query: "/Pets/Pet" + XmlRole { name: "name"; query: "/name/string()" } //starts with '/' + XmlRole { name: "type"; query: "type" } //no type + XmlRole { name: "age"; query: "age/" } //ends with '/' + XmlRole { name: "size"; query: "size/number()" } //wrong type +} |