mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-25 10:20:34 +00:00
22 lines
No EOL
515 B
JavaScript
22 lines
No EOL
515 B
JavaScript
/*
|
|
* mobile select unit tests
|
|
*/
|
|
|
|
(function($){
|
|
module("jquery.mobile.forms.select native");
|
|
|
|
test( "native menu selections alter the button text", function(){
|
|
var select = $("#native-select-choice-few"), setAndCheck;
|
|
|
|
setAndCheck = function(key){
|
|
var text;
|
|
|
|
select.val(key).selectmenu('refresh');
|
|
text = select.find("option[value='" + key + "']").text();
|
|
same(select.parent().find(".ui-btn-text").text(), text);
|
|
};
|
|
|
|
setAndCheck('rush');
|
|
setAndCheck('standard');
|
|
});
|
|
})(jQuery); |