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

Function pageFactory

apps/automated/src/ui/page/page-tests-common.ts:28–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27 const handler = (data) => (nativeInstanceCreated = !!label.nativeViewProtected);
28 const pageFactory = () => {
29 page = new Page();
30 page.id = `page_test_AfterPageLoaded_is_called_NativeInstance_is_created`;
31 page.on(Label.loadedEvent, handler);
32
33 label = new Label();
34 label.text = 'Text';
35 page.content = label;
36
37 return page;
38 };
39
40 helper.navigate(pageFactory);
41

Callers

nothing calls this directly

Calls 4

addLabelToPageFunction · 0.85
onMethod · 0.65
pushMethod · 0.45
topmostMethod · 0.45

Tested by

no test coverage detected