(views: Array<View>)
| 132 | model.set('testProperty', 'testValue'); |
| 133 | |
| 134 | const test = function (views: Array<View>) { |
| 135 | views[0].bindingContext = model; |
| 136 | views[1].bind({ |
| 137 | sourceProperty: 'testProperty', |
| 138 | targetProperty: 'text', |
| 139 | }); |
| 140 | |
| 141 | const button = <Button>views[1]; |
| 142 | TKUnit.assertEqual(button.text, model.get('testProperty'), 'Bind method not working when no source is passed but a valid bindingContext is present.'); |
| 143 | }; |
| 144 | |
| 145 | helper.do_PageTest_WithButton(test); |
| 146 | } |