// Set up the page
name: "isValidDate Tests",
testValidDate: function() {
},
testInvalidDate: function() {
var invalidDate = new Date("Invalid date string");
}
}));
name: "DateMath Tests",
'test: addDays': function() {
Assert.areEqual(Y.DataType.Date.addDays(initDate, 2).getTime(), finalDate.getTime(), "Expected true.");
},
'test: addMonths': function() {
Assert.areEqual(Y.DataType.Date.addMonths(initDate, 11).getTime(), finalDate.getTime(), "Expected true.");
},
'test: addYears': function() {
Assert.areEqual(Y.DataType.Date.addYears(initDate, 7).getTime(), finalDate.getTime(), "Expected true.");
}
}));
name: "DaysInMonth Tests",
'test: daysInMonth': function() {
//Non Leap Yaer
//Leap Year
//Really Old Leap Year
//Really Old Non Leap Year
},
'test: listOfDatesInMonth': function() {
}
}));
name: "Comparitor Tests",
'test: areEqual': function() {
},
'test: isGreater': function() {
var d1 = new Date('10/10/10 10:10:10'),
d2 = new Date();
},
'test: isGreaterOrEqual': function() {
var d1 = new Date('10/10/10 10:10:10'),
},
'test: isInRange': function() {
var d1 = new Date('10/10/10 10:10:10'),
d2 = new Date('09/09/109 09:09:09'),
d3 = new Date('11/11/11 11:11:11');
}
}));
});