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

Function assert

apps/automated/src/ui/text-field/text-field-tests.ts:751–754  ·  view source on GitHub ↗
(index, count)

Source from the content-addressed store, hash-verified

749 addTextField();
750
751 const assert = (index, count) => {
752 const view: any = stack.getChildAt(index);
753 TKUnit.assertEqual(view.returnPress, count, `TextField at ${index}, has incorrect returnPress.`);
754 };
755 helper.buildUIAndRunTest(stack, (views: Array<View>) => {
756 (stack.getChildAt(0) as TextField).focus();
757

Callers 1

Calls 1

getChildAtMethod · 0.65

Tested by

no test coverage detected