aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Bovée <samycookie2000@yahoo.fr>2012-11-16 12:47:22 +0100
committerMike Sherov <mike.sherov@gmail.com>2012-11-21 19:18:00 -0500
commitcb748b4a6f32aa5748d6777e7871c96f70ad2207 (patch)
treef04b297e552adaefc255584a75b6d0b408982c80 /tests
parentf13b5dfa7fdb480b818cfbf07e35088460e7b5c9 (diff)
downloadjquery-ui-cb748b4a6f32aa5748d6777e7871c96f70ad2207.tar.gz
jquery-ui-cb748b4a6f32aa5748d6777e7871c96f70ad2207.zip
Slider: factorize code with Widget method call. Fixed #8772 - Wrong slider UI state when disabled at init
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/slider/slider_methods.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js
index 11d679845..83e78b855 100644
--- a/tests/unit/slider/slider_methods.js
+++ b/tests/unit/slider/slider_methods.js
@@ -41,10 +41,10 @@ test("enable", function() {
equal(actual, expected, 'enable is chainable');
el = $('<div></div>').slider({ disabled: true });
- ok(el.hasClass('ui-disabled'), 'slider has ui-disabled class before enable method call');
+ ok(el.hasClass('ui-state-disabled'), 'slider has ui-state-disabled class before enable method call');
ok(el.hasClass('ui-slider-disabled'), 'slider has ui-slider-disabled class before enable method call');
el.slider('enable');
- ok(!el.hasClass('ui-disabled'), 'slider does not have ui-disabled class after enable method call');
+ ok(!el.hasClass('ui-state-disabled'), 'slider does not have ui-state-disabled class after enable method call');
ok(!el.hasClass('ui-slider-disabled'), 'slider does not have ui-slider-disabled class after enable method call');
});
@@ -56,10 +56,10 @@ test("disable", function() {
equal(actual, expected, 'disable is chainable');
el = $('<div></div>').slider({ disabled: false });
- ok(!el.hasClass('ui-disabled'), 'slider does not have ui-disabled class before disabled method call');
+ ok(!el.hasClass('ui-state-disabled'), 'slider does not have ui-state-disabled class before disabled method call');
ok(!el.hasClass('ui-slider-disabled'), 'slider does not have ui-slider-disabled class before disable method call');
el.slider('disable');
- ok(el.hasClass('ui-disabled'), 'slider has ui-disabled class after disable method call');
+ ok(el.hasClass('ui-state-disabled'), 'slider has ui-state-disabled class after disable method call');
ok(el.hasClass('ui-slider-disabled'), 'slider has ui-slider-disabled class after disable method call');
});