aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider/slider_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/slider/slider_methods.js')
-rw-r--r--tests/unit/slider/slider_methods.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js
index 66624e8a8..b46222002 100644
--- a/tests/unit/slider/slider_methods.js
+++ b/tests/unit/slider/slider_methods.js
@@ -38,13 +38,13 @@ test("destroy", function() {
var expected = $('<div></div>').slider(),
actual = expected.slider('destroy');
- equals(actual, expected, 'destroy is chainable');
+ equal(actual, expected, 'destroy is chainable');
});
test("enable", function() {
var expected = $('<div></div>').slider(),
actual = expected.slider('enable');
- equals(actual, expected, 'enable is chainable');
+ equal(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');
@@ -57,7 +57,7 @@ test("enable", function() {
test("disable", function() {
var expected = $('<div></div>').slider(),
actual = expected.slider('disable');
- equals(actual, expected, 'disable is chainable');
+ equal(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');
@@ -73,9 +73,9 @@ test("value", function() {
range: this,
value: 5
});
- equals(el.slider('value'), 5, 'range: ' + this + ' slider method get');
- equals(el.slider('value', 10), el, 'value method is chainable');
- equals(el.slider('value'), 10, 'range: ' + this + ' slider method set');
+ equal(el.slider('value'), 5, 'range: ' + this + ' slider method get');
+ equal(el.slider('value', 10), el, 'value method is chainable');
+ equal(el.slider('value'), 10, 'range: ' + this + ' slider method set');
el.remove();
});
var el = $('<div></div>').slider({
@@ -83,16 +83,16 @@ test("value", function() {
});
// min with value option vs value method
el.slider('option', 'value', -2);
- equals(el.slider('option', 'value'), -2, 'value option does not respect min');
- equals(el.slider('value'), -1, 'value method get respects min');
- equals(el.slider('value', -2), el, 'value method is chainable');
- equals(el.slider('option', 'value'), -1, 'value method set respects min');
+ equal(el.slider('option', 'value'), -2, 'value option does not respect min');
+ equal(el.slider('value'), -1, 'value method get respects min');
+ equal(el.slider('value', -2), el, 'value method is chainable');
+ equal(el.slider('option', 'value'), -1, 'value method set respects min');
// max with value option vs value method
el.slider('option', 'value', 2);
- equals(el.slider('option', 'value'), 2, 'value option does not respect max');
- equals(el.slider('value'), 1, 'value method get respects max');
- equals(el.slider('value', 2), el, 'value method is chainable');
- equals(el.slider('option', 'value'), 1, 'value method set respects max');
+ equal(el.slider('option', 'value'), 2, 'value option does not respect max');
+ equal(el.slider('value'), 1, 'value method get respects max');
+ equal(el.slider('value', 2), el, 'value method is chainable');
+ equal(el.slider('option', 'value'), 1, 'value method set respects max');
});
//test("values", function() {