]> source.dussan.org Git - jquery-ui.git/commit
Tests: Fix selectmenu width tests in Firefox with jQuery 3.0 & 3.1
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 10 May 2023 08:56:02 +0000 (10:56 +0200)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 08:56:02 +0000 (10:56 +0200)
commit23655f0dbdd0fff8498440ada710a32ad3ffc974
tree777115e4c40f6f8bb61b99a335eb9ebf2d8bec21
parent7adb13ac7c30a7ba33f1db256952be77b9e7a310
Tests: Fix selectmenu width tests in Firefox with jQuery 3.0 & 3.1

jQuery 3.0 & 3.1 used `getBoundingClientRect()` in its `width`/`height`
calculations and that causes minor differences in fractional width computations.
Allow a tiny delta in tests to fix those tests breaking in Firefox.

Ref jquery/jquery#3561
Closes gh-2159
tests/unit/selectmenu/options.js