aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/slider/slider_options.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-28 15:56:32 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-02-29 18:36:40 +0100
commit72023dd045a7fead5a3136ec2400ad4743a190d2 (patch)
tree4999a287a815e6a4200498a2a0241abc349fe599 /tests/unit/slider/slider_options.js
parente6b7486abf2e0f98837e76027084fad6fe908cff (diff)
downloadjquery-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_options.js')
-rw-r--r--tests/unit/slider/slider_options.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js
index 040589bd6..7d9899284 100644
--- a/tests/unit/slider/slider_options.js
+++ b/tests/unit/slider/slider_options.js
@@ -13,7 +13,7 @@ module("slider: options");
test("max", function() {
el = $('<div></div>');
-
+
options = {
max: 37,
min: 6,
@@ -31,7 +31,7 @@ test("max", function() {
test("min", function() {
el = $('<div></div>');
-
+
options = {
max: 37,
min: 6,
@@ -62,7 +62,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");
- equals(handle().css('left'), percentVal + '%', "horizontal slider handle is positioned with left: %");
+ equal(handle().css('left'), percentVal + '%', "horizontal slider handle is positioned with left: %");
el.slider('destroy');
@@ -78,7 +78,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");
- equals(handle().css('bottom'), percentVal + '%', "vertical slider handle is positioned with bottom: %");
+ equal(handle().css('bottom'), percentVal + '%', "vertical slider handle is positioned with bottom: %");
el.slider('destroy');
@@ -98,19 +98,19 @@ test("step", function() {
step: 10,
max: 100
});
- equals( el.slider("value"), 0 );
+ equal( el.slider("value"), 0 );
el.slider("value", 1);
- equals( el.slider("value"), 0 );
+ equal( el.slider("value"), 0 );
el.slider("value", 9);
- equals( el.slider("value"), 10 );
+ equal( el.slider("value"), 10 );
el.slider("value", 11);
- equals( el.slider("value"), 10 );
+ equal( el.slider("value"), 10 );
el.slider("value", 19);
- equals( el.slider("value"), 20 );
+ equal( el.slider("value"), 20 );
el = $('<div></div>').slider({
min: 0,
@@ -121,16 +121,16 @@ el = $('<div></div>').slider({
el.slider("value", 0);
el.slider("option", "value", 1);
- equals( el.slider("value"), 0 );
+ equal( el.slider("value"), 0 );
el.slider("option", "value", 9);
- equals( el.slider("value"), 0 );
+ equal( el.slider("value"), 0 );
el.slider("option", "value", 11);
- equals( el.slider("value"), 20 );
+ equal( el.slider("value"), 20 );
el.slider("option", "value", 19);
- equals( el.slider("value"), 20 );
+ equal( el.slider("value"), 20 );
el.slider('destroy');
});