Skip to content

Commit 942b0c2

Browse files
committed
test for open and close no-op
1 parent f1fef48 commit 942b0c2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/unit/select/select_native.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,19 @@
5050
var select = $( "#native-refresh" ),
5151
button = select.siblings( '.ui-btn-inner' ),
5252
text = "foo";
53-
53+
5454
same(button.text(), "default");
5555
select.find( "option" ).remove(); //remove the loading message
5656
select.append('<option value="1">' + text + '</option>');
5757
select.selectmenu('refresh');
5858
same(button.text(), text);
5959
});
60+
61+
// issue 2424
62+
test( "native selects should provide open and close as a no-op", function() {
63+
// exception will prevent test success if undef
64+
$( "#native-refresh" ).selectmenu( 'open' );
65+
$( "#native-refresh" ).selectmenu( 'close' );
66+
ok( true );
67+
});
6068
})(jQuery);

0 commit comments

Comments
 (0)