MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _testSetText

Function _testSetText

apps/automated/src/ui/button/button-tests.ts:81–91  ·  view source on GitHub ↗
(views: Array<View>)

Source from the content-addressed store, hash-verified

79};
80
81var _testSetText = function (views: Array<View>) {
82 var button = <Button>views[0];
83 // >> button-settext
84 button.text = 'Hello, world!';
85 // << button-settext
86
87 var expectedValue = button.text;
88 var actualValue = buttonTestsNative.getNativeText(button);
89
90 TKUnit.assert(actualValue === expectedValue, 'Actual: ' + actualValue + '; Expected: ' + expectedValue);
91};
92
93var _testOnClick = function (views: Array<View>) {
94 var button = <Button>views[0];

Callers

nothing calls this directly

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected