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

Function assertAreClose

apps/automated/src/ui-helper.ts:235–240  ·  view source on GitHub ↗
(actual: number, expected: number, message: string)

Source from the content-addressed store, hash-verified

233}
234
235export function assertAreClose(actual: number, expected: number, message: string): void {
236 const density = Utils.layout.getDisplayDensity();
237 const delta = Math.floor(density) !== density ? 1.1 : DELTA;
238
239 TKUnit.assertAreClose(actual, expected, delta, message);
240}
241
242export function assertViewColor(testView: View, hexColor: string) {
243 TKUnit.assert(testView.style.color, 'Color property not applied correctly. Style value is not defined.');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected