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

Function callback

apps/automated/src/ui/view/view-tests-common.ts:9–14  ·  view source on GitHub ↗
(child: View)

Source from the content-addressed store, hash-verified

7 // traverse the visual tree and verify the hierarchy
8 let counter = 0;
9 const callback = function (child: View): boolean {
10 TKUnit.assert(child === views[counter]);
11 counter++;
12
13 return true;
14 };
15
16 eachDescendant(<any>Frame.topmost(), callback);
17 // Descendants: page, actionBar, button

Callers

nothing calls this directly

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected