diff --git a/test/index.html b/test/index.html
index ddb24c6..b2a153a 100644
--- a/test/index.html
+++ b/test/index.html
@@ -65,9 +65,13 @@
Cutoff
- Date that is older than cutoff: (this should be displayed)
+ Date that is before a past cutoff: (this should be displayed)
- Date that is newer than cutoff: (you shouldn't see this)
+ Date that is after a past cutoff: (you shouldn't see this)
+
+ Date that is past a future cutoff: (this should be displayed)
+
+ Date that is before a future cutoff: (you shouldn't see this)
Errors
@@ -332,13 +336,25 @@
module("Cutoff");
test("should not change dates older than cutoff setting", function () {
- ok(testElements("abbr.doCutoff", function (element) {
+ ok(testElements("abbr.doCutoffPast", function (element) {
return (element.html() === "(this should be displayed)");
}), "Cutoff setting working fine");
});
test("should change dates newer than cutoff setting", function () {
- ok(testElements("abbr.dontCutoff", function (element) {
+ ok(testElements("abbr.dontCutoffPast", function (element) {
+ return (element.html() === "less than a minute ago");
+ }), "Cutoff setting working fine");
+ });
+
+ test("should not change dates older than cutoff setting", function () {
+ ok(testElements("abbr.doCutoffFuture", function (element) {
+ return (element.html() === "(this should be displayed)");
+ }), "Cutoff setting working fine");
+ });
+
+ test("should change dates newer than cutoff setting", function () {
+ ok(testElements("abbr.dontCutoffFuture", function (element) {
return (element.html() === "less than a minute ago");
}), "Cutoff setting working fine");
});