diff options
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_options.js')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_options.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/unit/selectmenu/selectmenu_options.js b/tests/unit/selectmenu/selectmenu_options.js index 08555a1af..7ed841a90 100644 --- a/tests/unit/selectmenu/selectmenu_options.js +++ b/tests/unit/selectmenu/selectmenu_options.js @@ -67,21 +67,20 @@ test( "appendTo: ui-front", function() { $( "#selectmenu-wrap2" )[ 0 ], "empty jQuery object, inside .ui-front" ); }); -test( "CSS styles", function() { - expect( 2 ); +test( "CSS styles", function( assert ) { + expect( 5 ); var element = $( "#speed" ).selectmenu(), button = element.selectmenu( "widget" ), menu = element.selectmenu( "menuWidget" ); element.selectmenu( "open" ); - ok( - button.hasClass( "ui-corner-top" ) && !button.hasClass( "ui-corner-all" ) && - button.find( "span.ui-icon" ).hasClass( "ui-icon-triangle-1-s" ), - "button styles dropdown" - ); - ok( menu.hasClass( "ui-corner-bottom" ) && !menu.hasClass( "ui-corner-all" ), - "menu styles dropdown" ); + + assert.hasClasses( button, "ui-corner-top" ); + assert.lacksClasses( button, "ui-corner-all" ); + assert.hasClasses( button.find( "span.ui-icon" ), "ui-icon-triangle-1-s" ); + assert.hasClasses( menu, "ui-corner-bottom" ); + assert.lacksClasses( button, "ui-corner-all" ); }); test( "width", function() { |