@@ -78,7 +78,7 @@ test( "min", function() {
78
78
} ) ;
79
79
80
80
test ( "orientation" , function ( ) {
81
- expect ( 6 ) ;
81
+ expect ( 8 ) ;
82
82
element = $ ( "#slider1" ) ;
83
83
84
84
options = {
@@ -93,6 +93,7 @@ test( "orientation", function() {
93
93
element . slider ( options ) . slider ( "option" , "orientation" , "horizontal" ) ;
94
94
ok ( element . is ( ".ui-slider-horizontal" ) , "horizontal slider has class .ui-slider-horizontal" ) ;
95
95
ok ( ! element . is ( ".ui-slider-vertical" ) , "horizontal slider does not have class .ui-slider-vertical" ) ;
96
+ equal ( element . find ( ".ui-slider-handle" ) [ 0 ] . style . bottom , "" , "CSS bottom reset" ) ;
96
97
equal ( handle ( ) [ 0 ] . style . left , percentVal + "%" , "horizontal slider handle is positioned with left: %" ) ;
97
98
98
99
element . slider ( "destroy" ) ;
@@ -109,6 +110,7 @@ test( "orientation", function() {
109
110
element . slider ( options ) . slider ( "option" , "orientation" , "vertical" ) ;
110
111
ok ( element . is ( ".ui-slider-vertical" ) , "vertical slider has class .ui-slider-vertical" ) ;
111
112
ok ( ! element . is ( ".ui-slider-horizontal" ) , "vertical slider does not have class .ui-slider-horizontal" ) ;
113
+ equal ( element . find ( ".ui-slider-handle" ) [ 0 ] . style . left , "" , "CSS left reset" ) ;
112
114
equal ( handle ( ) [ 0 ] . style . bottom , percentVal + "%" , "vertical slider handle is positioned with bottom: %" ) ;
113
115
114
116
element . slider ( "destroy" ) ;
0 commit comments