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

Function pageFactory

apps/automated/src/ui/page/page-tests.android.ts:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 let label: Label;
23
24 const pageFactory = function (): Page {
25 testPage = new Page();
26 testPage.id = 'testPage_test_NavigateToNewPage_WithAndroidCache';
27 label = new Label();
28 label.text = 'The quick brown fox jumps over the lazy dog.';
29 testPage.content = label;
30
31 return testPage;
32 };
33
34 const currentPage = Frame.topmost().currentPage;
35 helper.navigateWithHistory(pageFactory);

Callers

nothing calls this directly

Calls 1

addLabelToPageFunction · 0.90

Tested by

no test coverage detected