diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-28 15:56:32 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-29 18:36:40 +0100 |
commit | 72023dd045a7fead5a3136ec2400ad4743a190d2 (patch) | |
tree | 4999a287a815e6a4200498a2a0241abc349fe599 /tests/unit/slider/slider_methods.js | |
parent | e6b7486abf2e0f98837e76027084fad6fe908cff (diff) | |
download | jquery-ui-72023dd045a7fead5a3136ec2400ad4743a190d2.tar.gz jquery-ui-72023dd045a7fead5a3136ec2400ad4743a190d2.zip |
Update to QUnit 1.3. Replace usage of same with deepEqual and equals with equal.
Diffstat (limited to 'tests/unit/slider/slider_methods.js')
-rw-r--r-- | tests/unit/slider/slider_methods.js | 28 |
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() { |