aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2010-03-17 15:02:18 +0000
committerRichard Worth <rdworth@gmail.com>2010-03-17 15:02:18 +0000
commitc6e48e85abcd1b8e47562e4d98634f4e647a7a1d (patch)
tree440324a3e33a232e2442dc3cb4a4eef006912ce0 /tests/unit/slider
parent92fe5e922538942427045d055ddf2607e9122ea8 (diff)
downloadjquery-ui-c6e48e85abcd1b8e47562e4d98634f4e647a7a1d.tar.gz
jquery-ui-c6e48e85abcd1b8e47562e4d98634f4e647a7a1d.zip
slider unit tests: corrected some hasClass calls
Diffstat (limited to 'tests/unit/slider')
-rw-r--r--tests/unit/slider/slider_methods.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js
index 65eb4e8d5..567c5de2e 100644
--- a/tests/unit/slider/slider_methods.js
+++ b/tests/unit/slider/slider_methods.js
@@ -53,11 +53,11 @@ test("enable", function() {
equals(actual, expected, 'enable is chainable');
var el = $('<div></div>').slider({ disabled: true });
- ok(el.hasClass('.ui-disabled'), 'slider has ui-disabled class before enable method call');
- ok(el.hasClass('.ui-slider-disabled'), 'slider has ui-slider-disabled class before enable method call');
+ ok(el.hasClass('ui-disabled'), 'slider has ui-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-slider-disabled'), 'slider does not have ui-slider-disabled class after enable method call');
+ ok(!el.hasClass('ui-disabled'), 'slider does not have ui-disabled class after enable method call');
+ ok(!el.hasClass('ui-slider-disabled'), 'slider does not have ui-slider-disabled class after enable method call');
});
test("disable", function() {
@@ -66,11 +66,11 @@ test("disable", function() {
equals(actual, expected, 'disable is chainable');
var 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-slider-disabled'), 'slider does not have ui-slider-disabled class before disable method call');
+ ok(!el.hasClass('ui-disabled'), 'slider does not have ui-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-slider-disabled'), 'slider has ui-slider-disabled class after disable method call');
+ ok(el.hasClass('ui-disabled'), 'slider has ui-disabled class after disable method call');
+ ok(el.hasClass('ui-slider-disabled'), 'slider has ui-slider-disabled class after disable method call');
});
test("value", function() {