Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > within

BrowserUITestSupport.within() method#

Helper to test that a value is the same as some target, within our tolerance. Sometimes the trigonometry stuff needs a little bit of leeway.

Signature:

within(val: number, target: number, msg: string): void;

Parameters#

ParameterTypeDescription
valnumber
targetnumber
msgstring

Returns:

void