diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-01-31 17:15:00 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-07 11:45:38 +0100 |
commit | 5e42176970c05c015685194aecf954aaac5d9e1e (patch) | |
tree | 110385902f865b7cbe13ea393a023c3ec3d6067b /tests/auto/qtquick2/qquickrepeater/data/repeater1.qml | |
parent | a52c11229a0c55071a43c9352b6c2e9e8ae481fa (diff) |
Separate out some of the common test code
Moves findItem, findItems() etc. into shared/visualtestutil.h and
moves duplicate list model test classes and other common view-specific
code into shared/viewtestutil.h.
Change-Id: Ia79bc4df1ab7fb618597755c0288a2e8f5054faf
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/qtquick2/qquickrepeater/data/repeater1.qml')
-rw-r--r-- | tests/auto/qtquick2/qquickrepeater/data/repeater1.qml | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/tests/auto/qtquick2/qquickrepeater/data/repeater1.qml b/tests/auto/qtquick2/qquickrepeater/data/repeater1.qml index 596dc9131e..3e6f4071ff 100644 --- a/tests/auto/qtquick2/qquickrepeater/data/repeater1.qml +++ b/tests/auto/qtquick2/qquickrepeater/data/repeater1.qml @@ -1,28 +1,30 @@ import QtQuick 2.0 -Rectangle { - id: container - objectName: "container" - width: 240 - height: 320 - color: "white" - Text { - text: "Zero" - } - Repeater { - id: repeater - objectName: "repeater" +Item { + Rectangle { + id: container + objectName: "container" width: 240 height: 320 - model: testData - Component { - Text { - y: index*20 - text: modelData + color: "white" + Text { + text: "Zero" + } + Repeater { + id: repeater + objectName: "repeater" + width: 240 + height: 320 + model: testData + Component { + Text { + y: index*20 + text: modelData + } } } - } - Text { - text: "Last" + Text { + text: "Last" + } } } |