From: Scott González Date: Thu, 28 Jul 2011 12:29:29 +0000 (-0400) Subject: Slider tests: Commented out incomplete tests and fixed defaults. X-Git-Tag: 1.9m6~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cec60ab3c317bf920eb2ab665adf958357db29ce;p=jquery-ui.git Slider tests: Commented out incomplete tests and fixed defaults. --- 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 = $('
').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);