diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-07-12 17:23:33 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-07-12 17:50:34 +0200 |
commit | 7759fb4dba5d4135297994a8292dad093d704e19 (patch) | |
tree | 44c6f718c1e2b6a5650d73449d58148a6e9be42a /tests/unit/menu/menu_options.js | |
parent | 1510f7e28a7cdb259409faa4b94ba2c1a52467ce (diff) | |
download | jquery-ui-7759fb4dba5d4135297994a8292dad093d704e19.tar.gz jquery-ui-7759fb4dba5d4135297994a8292dad093d704e19.zip |
Menu: Rename icon option to icons.submenu
Diffstat (limited to 'tests/unit/menu/menu_options.js')
-rw-r--r-- | tests/unit/menu/menu_options.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/unit/menu/menu_options.js b/tests/unit/menu/menu_options.js index 1ccbb20ab..a8b029201 100644 --- a/tests/unit/menu/menu_options.js +++ b/tests/unit/menu/menu_options.js @@ -40,7 +40,21 @@ test( "{ disabled: false }", function() { equal( logOutput(), "click,1,afterclick", "Click order not valid." ); }); -// TODO: test icon option +test( "{ icons: default }", function() { + expect( 1 ); + var element = $( "#menu2" ).menu(); + equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon ui-icon-carat-1-e" ); +}); + +test( "{ icons: { submenu: 'custom' } }", function() { + expect( 1 ); + var element = $( "#menu2" ).menu({ + icons: { + submenu: "custom-class" + } + }); + equal( element.find( ".ui-menu-icon" ).attr( "class" ), "ui-menu-icon ui-icon custom-class" ); +}); // TODO: test menus option |