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

Function isBelow

apps/automated/src/ui/layouts/layout-tests-helper.ts:111–113  ·  view source on GitHub ↗
(view1: View, view2: View, distance?: number, message?: string)

Source from the content-addressed store, hash-verified

109}
110
111export function isBelow(view1: View, view2: View, distance?: number, message?: string) {
112 TKUnit.assert(top(view1) >= bottom(view2), message || `${view1}.top:${top(view1)} is not below ${view2}.bottom:${bottom(view1)}`);
113}
114
115export function isLeftWith(view1: View, view2: View, distance: number, message?: string) {
116 TKUnit.assertTrue(Math.abs(left(view1) + distance - left(view2)) <= EPS, message || `${view1}.left:${left(view1)} is not ${distance} of ${view2}.left:${left(view2)}`);

Callers 1

Calls 3

topFunction · 0.85
bottomFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected