Closure Library API Documentation
Go to class or file:
testing.style.layoutasserts
Classes
Public
Protected
Private
Global Functions
goog.testing.style.layoutasserts.
isWithinThreshold_
(
val1
,
val2
,
threshold
)
⇒
boolean
Returns true if the difference between val1 and val2 is less than or equal to the threashold.
Arguments:
val1
:
number
The first value.
val2
:
number
The second value.
threshold
:
number
The threshold value.
Returns:
boolean
Whether or not the the values are within the threshold.
code »
Package testing.style
Package Reference