aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-17 15:05:05 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-17 15:05:05 -0400
commit75105f612c80bac6f3e8150225fdf2da90ff2f33 (patch)
tree0628865188b197f8b958522835bd12ea60158143 /tests/unit/slider
parent174df61a6e9f50286f595b3fb6af4bd0a6450392 (diff)
downloadjquery-ui-75105f612c80bac6f3e8150225fdf2da90ff2f33.tar.gz
jquery-ui-75105f612c80bac6f3e8150225fdf2da90ff2f33.zip
Slider tests: Fixed style checks for orientation test.
Diffstat (limited to 'tests/unit/slider')
-rw-r--r--tests/unit/slider/slider_options.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js
index 4d1983ec7..96d0d45d0 100644
--- a/tests/unit/slider/slider_options.js
+++ b/tests/unit/slider/slider_options.js
@@ -51,7 +51,7 @@ test("min", function() {
test("orientation", function() {
expect( 6 );
- el = $('<div></div>');
+ el = $('#slider1');
options = {
max: 2,
@@ -65,7 +65,7 @@ test("orientation", function() {
el.slider(options).slider("option", "orientation", "horizontal");
ok(el.is('.ui-slider-horizontal'), "horizontal slider has class .ui-slider-horizontal");
ok(!el.is('.ui-slider-vertical'), "horizontal slider does not have class .ui-slider-vertical");
- equal(handle().css('left'), percentVal + '%', "horizontal slider handle is positioned with left: %");
+ equal(handle()[0].style.left, percentVal + '%', "horizontal slider handle is positioned with left: %");
el.slider('destroy');
@@ -81,7 +81,7 @@ test("orientation", function() {
el.slider(options).slider("option", "orientation", "vertical");
ok(el.is('.ui-slider-vertical'), "vertical slider has class .ui-slider-vertical");
ok(!el.is('.ui-slider-horizontal'), "vertical slider does not have class .ui-slider-horizontal");
- equal(handle().css('bottom'), percentVal + '%', "vertical slider handle is positioned with bottom: %");
+ equal(handle()[0].style.bottom, percentVal + '%', "vertical slider handle is positioned with bottom: %");
el.slider('destroy');