From cec60ab3c317bf920eb2ab665adf958357db29ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 28 Jul 2011 08:29:29 -0400 Subject: [PATCH] Slider tests: Commented out incomplete tests and fixed defaults. --- tests/unit/slider/slider_defaults.js | 2 +- tests/unit/slider/slider_methods.js | 6 +++--- 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 = $('
').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); -- 2.39.5