Skip to content
Browse files

Slider tests: Commented out incomplete tests and fixed defaults.

  • Loading branch information...
1 parent 719db7f commit cec60ab3c317bf920eb2ab665adf958357db29ce @scottgonzalez scottgonzalez committed
View
2 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,
View
6 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);
View
18 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);

0 comments on commit cec60ab

Please sign in to comment.
Something went wrong with that request. Please try again.