Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeitem / data / resourcesProperty.qml
1 import QtQuick 1.0
2
3 Item {
4     id: root
5
6     property bool test1
7     property bool test2
8     property bool test3
9     property bool test4
10     property bool test5
11
12     Component.onCompleted: {
13         test1 = (root.resources.length >= 3)
14         test2 = root.resources[0] == item1
15         test3 = root.resources[1] == item2
16         test4 = root.resources[2] == item3
17         test5 = root.resources[10] == null
18     }
19
20     resources: [ Item { id: item1 }, Item { id: item2 }, Item { id: item3 } ]
21 }