Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 7a267e2

Browse files
committed
test that the link title value is the selected option text
1 parent 9066a0b commit 7a267e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/slider/slider_core.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,12 @@
2727
same( slider.attr('min'), "10", "slider min is greater than 0" );
2828
same( slider.val( '' ).slider( 'refresh' ).val(), slider.attr('min'), "val is equal to min attr");
2929
});
30+
31+
test( "flip toggle switch title should be current selected value attr", function() {
32+
var slider = $( "#slider-switch" );
33+
34+
same(slider.siblings(".ui-slider").find("a").attr('title'),
35+
$(slider.find("option")[slider[0].selectedIndex]).text(),
36+
"verify that the link title is set to the selected option text");
37+
});
3038
})( jQuery );

0 commit comments

Comments
 (0)