RESOLVED FIXED 66682
garden-o-matic's relative time display should be updated regularly.
https://bugs.webkit.org/show_bug.cgi?id=66682
Summary garden-o-matic's relative time display should be updated regularly.
Dimitri Glazkov (Google)
Reported 2011-08-22 10:24:28 PDT
garden-o-matic's relative time display should be updated regularly.
Attachments
Patch (4.92 KB, patch)
2011-08-22 10:25 PDT, Dimitri Glazkov (Google)
abarth: review+
Dimitri Glazkov (Google)
Comment 1 2011-08-22 10:25:44 PDT
Adam Barth
Comment 2 2011-08-22 10:45:18 PDT
Comment on attachment 104693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104693&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:30 > +var kTimeUpdateFrequencyInMilliseconds = 1000; Should this be in config ? > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:183 > + Array.prototype.forEach.call(document.querySelectorAll("time"), function(time) { Do we want to add a class name here? It seems like we could use other <time> elements that don't derive from ui.Time
Dimitri Glazkov (Google)
Comment 3 2011-08-22 10:58:05 PDT
Comment on attachment 104693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104693&action=review >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:30 >> +var kTimeUpdateFrequencyInMilliseconds = 1000; > > Should this be in config ? Ooh, yes. >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/ui.js:183 >> + Array.prototype.forEach.call(document.querySelectorAll("time"), function(time) { > > Do we want to add a class name here? It seems like we could use other <time> elements that don't derive from ui.Time That's a neat idea! I'll add "relative" to the instance. Hey, I should even rename this to RelativeTime class.
Dimitri Glazkov (Google)
Comment 4 2011-08-22 11:15:56 PDT
Note You need to log in before you can comment on or make changes to this bug.