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

Function addLabelToPage

apps/automated/src/ui/page/page-tests-common.ts:12–16  ·  view source on GitHub ↗
(page: Page, text?: string)

Source from the content-addressed store, hash-verified

10import * as helper from '../../ui-helper';
11
12export function addLabelToPage(page: Page, text?: string) {
13 const label = new Label();
14 label.text = text || 'The quick brown fox jumps over the lazy dog.';
15 page.content = label;
16}
17
18export function test_recycling() {
19 helper.nativeView_recycling_test(() => new Page());

Callers 4

pageFactoryFunction · 0.90
pageFactoryFunction · 0.90
pageFactoryFunction · 0.85
pageFactory2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected