Short term
-You opened this page sometime before now.
+You opened this page (you shouldn't see this).
This page was last modified sometime before
@@ -66,7 +66,8 @@
Date only: (you shouldn't see this). Date only (abbr element): (you shouldn't see this). Date only (time element): .Other formats
- Errors
@@ -193,6 +194,7 @@
$('abbr.modified').attr('title', iso8601(new Date(document.lastModified)));
$('abbr.timeago').timeago();
+ $('time.timeago').timeago();
$('abbr.todate').each(function () {
var date = $.timeago.parse(this.title);
@@ -218,6 +220,12 @@
}), 'All text was replaced');
});
+ test('Text in time tag should be replaced', function () {
+ ok(testElements('time.timeago', function (element) {
+ return (element.html() !== "(you shouldn't see this)");
+ }), 'All text was replaced');
+ });
+
module('Invalid date');
test('Text in abbr should not be replaced', function () {