Skip to content

Commit

Permalink
[calendar] Add test case for bug #1540
Browse files Browse the repository at this point in the history
Test the bug #1540 that the style of the day of the next month
can be selected when you are showing the next month on a calendar.
  • Loading branch information
okuryu committed Jan 11, 2014
1 parent e45a705 commit dd919cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/calendar/tests/unit/assets/calendar-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ YUI.add('calendar-tests', function(Y) {

Y.one(".calendar_col2.yui3-calendar-prevmonth-day").simulate("click");
Y.one(".calendar_col2.yui3-calendar-nextmonth-day").simulate("click");

this.firstcalendar.set("date", new Date(2014, 1, 1));
var calendarId = "#" + this.firstcalendar._calendarId;
var nextMonthDate = Y.one(calendarId + "_pane_0_0_30");

Y.Assert.isFalse(nextMonthDate.hasClass("yui3-calendar-day"));
},

testTwoCalendars : function () {
Expand Down

0 comments on commit dd919cd

Please sign in to comment.