]> source.dussan.org Git - jquery-ui.git/commit
Tests: Use closeEnough() to account for rounding differences
authorTJ VanToll <tj.vantoll@gmail.com>
Mon, 23 Jun 2014 01:00:03 +0000 (21:00 -0400)
committerTJ VanToll <tj.vantoll@gmail.com>
Wed, 25 Jun 2014 16:16:29 +0000 (12:16 -0400)
commitc29b4434b6c09c3ddee705be46e2b00462499880
tree4bc207867e02b60eaac0b9cc3921353299034a04
parenta0fea7d849a2d0a949cfde8ea1c2edbf2a94d963
Tests: Use closeEnough() to account for rounding differences

Selectmenu's test suite broke with b0e8380, which changed the padding
used by the menu widget. Selectmenu conditionally adds pixels to the
menu's width, and using closeEnough() accounts for that and the
rounding differences across browsers.

Closes gh-1275
tests/unit/selectmenu/selectmenu_options.js