diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2016-02-10 11:31:03 -0500 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2016-02-24 11:29:44 -0500 |
commit | 20466d50277712050b4e403686a9df16b5eca4e9 (patch) | |
tree | a867e38c14ac2cc0a10e991e10c0da3969f39ef6 /tests/unit/selectmenu | |
parent | 8564641fb8dcff3f072106b075a1bdb1f16ec63d (diff) | |
download | jquery-ui-20466d50277712050b4e403686a9df16b5eca4e9.tar.gz jquery-ui-20466d50277712050b4e403686a9df16b5eca4e9.zip |
Selectmenu: Fixed selectmenu icon float right
Also removes the icon space as its not needed with a floated icon
Fixes #14914
Closes gh-1671
Diffstat (limited to 'tests/unit/selectmenu')
-rw-r--r-- | tests/unit/selectmenu/core.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/core.js b/tests/unit/selectmenu/core.js index 1c1a6b622..3c2b4936d 100644 --- a/tests/unit/selectmenu/core.js +++ b/tests/unit/selectmenu/core.js @@ -6,18 +6,22 @@ define( [ module( "selectmenu: core" ); test( "markup structure", function( assert ) { - expect( 4 ); + expect( 7 ); var element = $( "#files" ).selectmenu(), button = element.selectmenu( "widget" ), + icon = button.find( ".ui-icon" ), menu = element.selectmenu( "menuWidget" ), menuWrap = menu.parent(); + assert.strictEqual( icon.length, 1, "Exactly one icon exists" ); + assert.hasClasses( icon, "ui-selectmenu-icon" ); assert.hasClasses( button, "ui-selectmenu-button ui-selectmenu-button-closed ui-widget" ); assert.lacksClasses( button, "ui-selectmenu-button-open ui-selectmenu-open" ); assert.hasClasses( menuWrap, "ui-selectmenu-menu" ); assert.lacksClasses( menuWrap, "ui-selectmenu-menu-open" ); + assert.strictEqual( icon[ 0 ], button.children().last()[ 0 ], "Icon is last child of button" ); } ); asyncTest( "accessibility", function() { |