(views: Array<View>)
| 30 | var repeater = new Repeater(); |
| 31 | |
| 32 | function testAction(views: Array<View>) { |
| 33 | // >> article-repeater-with-array |
| 34 | var colors = ['red', 'green', 'blue']; |
| 35 | repeater.items = colors; |
| 36 | // << article-repeater-with-array |
| 37 | |
| 38 | TKUnit.waitUntilReady(() => repeater.isLayoutValid); |
| 39 | |
| 40 | TKUnit.assert(getChildAtText(repeater, 0) === 'red', 'Item not created for index 0'); |
| 41 | TKUnit.assert(getChildAtText(repeater, 1) === 'green', 'Item not created for index 1'); |
| 42 | TKUnit.assert(getChildAtText(repeater, 2) === 'blue', 'Item not created for index 2'); |
| 43 | } |
| 44 | |
| 45 | helper.buildUIAndRunTest(repeater, testAction); |
| 46 | } |
nothing calls this directly
no test coverage detected