diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-27 17:23:25 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-27 17:23:25 +0100 |
commit | 2c3d311f90281e95827708e2e8d0e52832a437de (patch) | |
tree | 794159b476f9a9debf101d3f3ff57f38223eb2f9 /tests/unit/menu | |
parent | 0d53fbfd0b7651652601b3b8577225ab753aab44 (diff) | |
download | jquery-ui-2c3d311f90281e95827708e2e8d0e52832a437de.tar.gz jquery-ui-2c3d311f90281e95827708e2e8d0e52832a437de.zip |
Menu: Allow changing icons option after creation. Fixes #8927 - Menu: Can't change icons option after init
Diffstat (limited to 'tests/unit/menu')
-rw-r--r-- | tests/unit/menu/menu_options.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/menu/menu_options.js b/tests/unit/menu/menu_options.js index 2c8749e3c..e3977e6ce 100644 --- a/tests/unit/menu/menu_options.js +++ b/tests/unit/menu/menu_options.js @@ -41,9 +41,12 @@ test( "{ disabled: false }", function() { }); test( "{ icons: default }", function() { - expect( 1 ); + expect( 2 ); var element = $( "#menu2" ).menu(); equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-carat-1-e" ); + + element.menu("option", "icons.submenu", "ui-icon-triangle-1-e"); + equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-triangle-1-e" ); }); test( "{ icons: { submenu: 'custom' } }", function() { |