]> source.dussan.org Git - jquery-ui.git/commit
Tests: Make some number comparisons less strict
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 8 Mar 2021 23:11:40 +0000 (00:11 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Mar 2021 23:11:40 +0000 (00:11 +0100)
commit9ea690a0d9e645280dbb448579d2ac3babb510ed
tree93a0492060ffe8508d15a19f4066c1917ad72c66
parent1029849a5314cac7371de9d787199749423bb458
Tests: Make some number comparisons less strict

Some of the APIs return fractional values in newer jQueries, making comparisons
sometimes not being 100% accurate. Allow some delta.

This is similar to what was already done in
98b539171b6e805fa79346a5e9896865e5213b9c but a few cases affecting IE and/or
Edge Legacy were missed.

Closes gh-1947
tests/unit/draggable/options.js
tests/unit/sortable/options.js