on xenial help sign in
Use the correct delegate base item for the Carousel test
commit3cc94f697ee4236c84f8e0d653014753b4597dc6 authorAlbert Astals <albert.astals@canonical.com> dateWed 16 Apr 2014, 13:44 (13 years ago) parente8ed8d03be0f91
1 file changed+8−5
tests/qmltests/Components/tst_Carousel.qml+8−5
tests/qmltests/Components/tst_Carousel.qml+8−5
@@ -32,11 +32,14 @@ Item {
3232 property int createdDelegates: 0
3333 property int destroyedDelegates: 0
3434
35− itemComponent: Rectangle {
36− border.color: "black"
37− color: "red"
38− Component.onCompleted: carousel.createdDelegates++
39− Component.onDestruction: carousel.destroyedDelegates++
35+ itemComponent: BaseCarouselDelegate {
36+ Rectangle {
37+ anchors.fill: parent
38+ border.color: "black"
39+ color: "red"
40+ Component.onCompleted: carousel.createdDelegates++
41+ Component.onDestruction: carousel.destroyedDelegates++
42+ }
4043 }
4144 }
4245 UT.UnityTestCase {