Skip to content

Commit 54fa1e1

Browse files
committed
Fix RTL unit tests for jQuery 3.3.1
In PhantomJS, .css('right') in jQuery 2.1.1 returns a string as a percentage (%). In PhantomJS, .css('right') in jQuery 3.3.1 returns a string in pixels (px). For other browsers (Chrome, Firefox, IE), .css('right') in jQuery 2.1.1 returns a string in pixels (px).
1 parent e0eb3ea commit 54fa1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/specs/RtlOptionsSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe("RTL Tests", function() {
4949
var sliderTrackHighLeft=$("#rtlSlider").siblings(".slider-rtl").children("div.slider-track").children("div.slider-track-high").css("left");
5050

5151
expect(sliderTrackLowRight).toBe("0px");
52-
expect(sliderSelectionRight).toBe("0%");
52+
expect(sliderSelectionRight).toBe("0px");
5353
expect(sliderTrackHighLeft).toBe("0px");
5454
});
5555

0 commit comments

Comments
 (0)