Slider tests: Commented out incomplete tests and fixed defaults.

This commit is contained in:
Scott González 2011-07-28 08:29:29 -04:00
parent 719db7f9b1
commit cec60ab3c3
3 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
commonWidgetTests( "slider", { commonWidgetTests( "slider", {
defaults: { defaults: {
animate: false, animate: false,
cancel: function() {}, cancel: ':input,option',
delay: 0, delay: 0,
disabled: false, disabled: false,
distance: 0, distance: 0,

View File

@ -95,8 +95,8 @@ test("value", function() {
equals(el.slider('option', 'value'), 1, 'value method set respects max'); equals(el.slider('option', 'value'), 1, 'value method set respects max');
}); });
test("values", function() { //test("values", function() {
ok(false, "missing test - untested code is broken code."); // ok(false, "missing test - untested code is broken code.");
}); //});
})(jQuery); })(jQuery);

View File

@ -84,9 +84,9 @@ test("orientation", function() {
}); });
test("range", function() { //test("range", function() {
ok(false, "missing test - untested code is broken code."); // ok(false, "missing test - untested code is broken code.");
}); //});
//spec: http://wiki.jqueryui.com/Slider#specs //spec: http://wiki.jqueryui.com/Slider#specs
// value option/method: the value option is not restricted by min/max/step. // value option/method: the value option is not restricted by min/max/step.
@ -135,12 +135,12 @@ el = $('<div></div>').slider({
el.slider('destroy'); el.slider('destroy');
}); });
test("value", function() { //test("value", function() {
ok(false, "missing test - untested code is broken code."); // ok(false, "missing test - untested code is broken code.");
}); //});
test("values", function() { //test("values", function() {
ok(false, "missing test - untested code is broken code."); // ok(false, "missing test - untested code is broken code.");
}); //});
})(jQuery); })(jQuery);