@@ -51,7 +51,7 @@ test("min", function() {
51
51
52
52
test ( "orientation" , function ( ) {
53
53
expect ( 6 ) ;
54
- el = $ ( '<div></div> ' ) ;
54
+ el = $ ( '#slider1 ' ) ;
55
55
56
56
options = {
57
57
max : 2 ,
@@ -65,7 +65,7 @@ test("orientation", function() {
65
65
el . slider ( options ) . slider ( "option" , "orientation" , "horizontal" ) ;
66
66
ok ( el . is ( '.ui-slider-horizontal' ) , "horizontal slider has class .ui-slider-horizontal" ) ;
67
67
ok ( ! el . is ( '.ui-slider-vertical' ) , "horizontal slider does not have class .ui-slider-vertical" ) ;
68
- equal ( handle ( ) . css ( ' left' ) , percentVal + '%' , "horizontal slider handle is positioned with left: %" ) ;
68
+ equal ( handle ( ) [ 0 ] . style . left , percentVal + '%' , "horizontal slider handle is positioned with left: %" ) ;
69
69
70
70
el . slider ( 'destroy' ) ;
71
71
@@ -81,7 +81,7 @@ test("orientation", function() {
81
81
el . slider ( options ) . slider ( "option" , "orientation" , "vertical" ) ;
82
82
ok ( el . is ( '.ui-slider-vertical' ) , "vertical slider has class .ui-slider-vertical" ) ;
83
83
ok ( ! el . is ( '.ui-slider-horizontal' ) , "vertical slider does not have class .ui-slider-horizontal" ) ;
84
- equal ( handle ( ) . css ( ' bottom' ) , percentVal + '%' , "vertical slider handle is positioned with bottom: %" ) ;
84
+ equal ( handle ( ) [ 0 ] . style . bottom , percentVal + '%' , "vertical slider handle is positioned with bottom: %" ) ;
85
85
86
86
el . slider ( 'destroy' ) ;
87
87
0 commit comments