diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-02-21 13:35:34 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-02-21 13:35:34 +0100 |
commit | fa99e23d18e6a835f866261e56398fa4f443edab (patch) | |
tree | e89ad01af132a7d67a5b9fdfa3901dac327f26d8 /tests/unit/selectmenu | |
parent | 8a71d0f129af18bd548f92d5fc84af42e73977a9 (diff) | |
download | jquery-ui-fa99e23d18e6a835f866261e56398fa4f443edab.tar.gz jquery-ui-fa99e23d18e6a835f866261e56398fa4f443edab.zip |
Selectmenu: Fall back to .ui-front searching for empty jQuery objects
Fixes #9757
Diffstat (limited to 'tests/unit/selectmenu')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_options.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/selectmenu_options.js b/tests/unit/selectmenu/selectmenu_options.js index 1ab098a75..28b55888c 100644 --- a/tests/unit/selectmenu/selectmenu_options.js +++ b/tests/unit/selectmenu/selectmenu_options.js @@ -3,7 +3,7 @@ module( "selectmenu: options" ); test( "appendTo another element", function () { - expect( 8 ); + expect( 9 ); var detached = $( "<div>" ), element = $( "#speed" ).selectmenu(); @@ -21,6 +21,11 @@ test( "appendTo another element", function () { element.selectmenu(); equal( element.selectmenu( "menuWidget" ).parent().parent()[ 0 ], $( "#selectmenu-wrap2" )[ 0 ], "null, inside .ui-front" ); element.selectmenu( "destroy" ); + + element.selectmenu({ + appendTo: $() + }); + equal( element.selectmenu( "menuWidget" ).parent().parent()[ 0 ], $( "#selectmenu-wrap2" )[ 0 ], "empty jQuery object, inside .ui-front" ); $( "#selectmenu-wrap2" ).removeClass( "ui-front" ); element.selectmenu().selectmenu( "option", "appendTo", "#selectmenu-wrap1" ); |