]> source.dussan.org Git - jquery-ui.git/commitdiff
DatePicker: Fix tests to have unique names
authorLuke Page <luke.a.page@gmail.com>
Sat, 10 Jan 2015 21:09:18 +0000 (21:09 +0000)
committerLuke Page <luke.a.page@gmail.com>
Sat, 10 Jan 2015 21:09:18 +0000 (21:09 +0000)
tests/unit/datepicker/datepicker_options.js

index 12da290bb2937a12860855bef1f1e7540d8ccdf3..8f18c854364c0538621615726aae0f9b826fa212 100644 (file)
@@ -509,16 +509,16 @@ test("minMax", function() {
                maxDate: "-6Y",
                yearRange: "1900:-6"
        }).val( "" );
-       ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - next button disabled");
-       ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - prev button enabled");
+       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 - relative - prev button enabled");
 
        inp.datepicker("option", {
                minDate: new Date(1900, 0, 1),
                maxDate: "1/25/2007",
                yearRange: "1900:2007"
        }).val( "" );
-       ok(dp.find(".ui-datepicker-next").hasClass("ui-state-disabled"), "Year Range Test - next button disabled");
-       ok(!dp.find(".ui-datepicker-prev").hasClass("ui-state-disabled"), "Year Range Test - prev button enabled");
+       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 - absolute - prev button enabled");
 });
 
 test("setDate", function() {