DatePicker: Fix tests to have unique names

(cherry picked from commit c21700742b)
This commit is contained in:
Luke Page 2015-01-10 21:09:18 +00:00 committed by Scott González
parent 7ff9b28de3
commit ad121b28cd

View File

@ -509,16 +509,16 @@ test("minMax", function() {
maxDate: "-6Y", maxDate: "-6Y",
yearRange: "1900:-6" yearRange: "1900:-6"
}).val( "" ); }).val( "" );
ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - next button disabled"); ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - relative - next button disabled");
ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - prev button enabled"); ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - relative - prev button enabled");
inp.datepicker("option", { inp.datepicker("option", {
minDate: new Date(1900, 0, 1), minDate: new Date(1900, 0, 1),
maxDate: "1/25/2007", maxDate: "1/25/2007",
yearRange: "1900:2007" yearRange: "1900:2007"
}).val( "" ); }).val( "" );
ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - next button disabled"); ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - absolute - next button disabled");
ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - prev button enabled"); ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - absolute - prev button enabled");
}); });
test("setDate", function() { test("setDate", function() {