diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-07-28 08:29:29 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-07-28 08:29:29 -0400 |
commit | cec60ab3c317bf920eb2ab665adf958357db29ce (patch) | |
tree | 1089cd08adbf4104eaf9bdd315923d9230ba0ef5 | |
parent | 719db7f9b1595d44cb083d8e17658c5462edf4ab (diff) | |
download | jquery-ui-cec60ab3c317bf920eb2ab665adf958357db29ce.tar.gz jquery-ui-cec60ab3c317bf920eb2ab665adf958357db29ce.zip |
Slider tests: Commented out incomplete tests and fixed defaults.
-rw-r--r-- | tests/unit/slider/slider_defaults.js | 2 | ||||
-rw-r--r-- | tests/unit/slider/slider_methods.js | 6 | ||||
-rw-r--r-- | tests/unit/slider/slider_options.js | 18 |
3 files changed, 13 insertions, 13 deletions
diff --git a/tests/unit/slider/slider_defaults.js b/tests/unit/slider/slider_defaults.js index 03f2a4f8e..8049fe969 100644 --- a/tests/unit/slider/slider_defaults.js +++ b/tests/unit/slider/slider_defaults.js @@ -1,7 +1,7 @@ commonWidgetTests( "slider", { defaults: { animate: false, - cancel: function() {}, + cancel: ':input,option', delay: 0, disabled: false, distance: 0, diff --git a/tests/unit/slider/slider_methods.js b/tests/unit/slider/slider_methods.js index 4b2b0311d..66624e8a8 100644 --- a/tests/unit/slider/slider_methods.js +++ b/tests/unit/slider/slider_methods.js @@ -95,8 +95,8 @@ test("value", function() { equals(el.slider('option', 'value'), 1, 'value method set respects max'); }); -test("values", function() { - ok(false, "missing test - untested code is broken code."); -}); +//test("values", function() { +// ok(false, "missing test - untested code is broken code."); +//}); })(jQuery); diff --git a/tests/unit/slider/slider_options.js b/tests/unit/slider/slider_options.js index f0abac665..040589bd6 100644 --- a/tests/unit/slider/slider_options.js +++ b/tests/unit/slider/slider_options.js @@ -84,9 +84,9 @@ test("orientation", function() { }); -test("range", function() { - ok(false, "missing test - untested code is broken code."); -}); +//test("range", function() { +// ok(false, "missing test - untested code is broken code."); +//}); //spec: http://wiki.jqueryui.com/Slider#specs // value option/method: the value option is not restricted by min/max/step. @@ -135,12 +135,12 @@ el = $('<div></div>').slider({ el.slider('destroy'); }); -test("value", function() { - ok(false, "missing test - untested code is broken code."); -}); +//test("value", function() { +// ok(false, "missing test - untested code is broken code."); +//}); -test("values", function() { - ok(false, "missing test - untested code is broken code."); -}); +//test("values", function() { +// ok(false, "missing test - untested code is broken code."); +//}); })(jQuery); |