test that the link title value is the selected option text

This commit is contained in:
John Bender 2011-12-06 16:09:52 -08:00
parent 9066a0b932
commit 7a267e2c7d

View file

@ -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 );