mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-28 18:04:46 +00:00
test that the link title value is the selected option text
This commit is contained in:
parent
9066a0b932
commit
7a267e2c7d
1 changed files with 8 additions and 0 deletions
|
|
@ -27,4 +27,12 @@
|
|||
same( slider.attr('min'), "10", "slider min is greater than 0" );
|
||||
same( slider.val( '' ).slider( 'refresh' ).val(), slider.attr('min'), "val is equal to min attr");
|
||||
});
|
||||
|
||||
test( "flip toggle switch title should be current selected value attr", function() {
|
||||
var slider = $( "#slider-switch" );
|
||||
|
||||
same(slider.siblings(".ui-slider").find("a").attr('title'),
|
||||
$(slider.find("option")[slider[0].selectedIndex]).text(),
|
||||
"verify that the link title is set to the selected option text");
|
||||
});
|
||||
})( jQuery );
|
||||
Loading…
Reference in a new issue