From: Scott González Date: Tue, 29 Jul 2014 19:02:36 +0000 (-0400) Subject: Selectmenu: Don't check menu width in width option tests X-Git-Tag: 1.11.1~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=64faf2da0a93a323172f87183112dd262c4c4fe8;p=jquery-ui.git Selectmenu: Don't check menu width in width option tests --- diff --git a/tests/unit/selectmenu/selectmenu_options.js b/tests/unit/selectmenu/selectmenu_options.js index ae847f5e1..049ba6ba2 100644 --- a/tests/unit/selectmenu/selectmenu_options.js +++ b/tests/unit/selectmenu/selectmenu_options.js @@ -87,43 +87,31 @@ test( "CSS styles", function() { test( "width", function() { - expect( 9 ); + expect( 5 ); var button, menu, element = $( "#speed" ); element.selectmenu(); button = element.selectmenu( "widget" ); - menu = element.selectmenu( "menuWidget" ); equal( button.outerWidth(), element.outerWidth(), "button width auto" ); - element.selectmenu( "open" ); - closeEnough( menu.outerWidth(), element.outerWidth(), 2, "menu width auto" ); element.outerWidth( 100 ); element.selectmenu( "refresh" ); - equal( button.outerWidth(), 100, "button width set by CSS" ); - element.selectmenu( "open" ); - equal( menu.outerWidth(), 100, "menu width set by CSS" ); element .width( "" ) .selectmenu( "option", "width", 100 ) .selectmenu( "refresh" ); - equal( button.outerWidth(), 100, "button width set by JS option" ); - element.selectmenu( "open" ); - equal( menu.outerWidth(), 100, "menu width set by JS option" ); element .append( $( "