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

Function testFunc

apps/automated/src/ui/image/image-tests.ts:43–50  ·  view source on GitHub ↗
(views: Array<ViewModule.View>)

Source from the content-addressed store, hash-verified

41 // << img-create
42
43 const testFunc = function (views: Array<ViewModule.View>) {
44 TKUnit.waitUntilReady(() => image.isLayoutValid);
45 const width = image.getMeasuredWidth();
46 const height = image.getMeasuredHeight();
47
48 TKUnit.assert(width > 0, 'Width should be greater than 0.');
49 TKUnit.assert(height > 0, 'Height should be greater than 0.');
50 };
51
52 helper.buildUIAndRunTest(image, testFunc);
53};

Callers 1

assertThrowsRegExpFunction · 0.50

Calls 5

getColorFunction · 0.90
getMeasuredWidthMethod · 0.80
getMeasuredHeightMethod · 0.80
assertMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected