MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / test

Function test

apps/automated/src/ui/core/bindable/bindable-tests.ts:134–143  ·  view source on GitHub ↗
(views: Array<View>)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 5

setMethod · 0.95
bindMethod · 0.80
assertMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected