Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1704)

Unified Diff: Tools/GardeningServer/ui/ct-last-updated.html

Issue 473433002: Fix test for "last updated" text. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/ui/ct-last-updated.html
diff --git a/Tools/GardeningServer/ui/ct-last-updated.html b/Tools/GardeningServer/ui/ct-last-updated.html
index 388f766d75668b9568111237f4b884b5233119b1..92e3fab9ec08002b674197b22240e282a5e987d7 100644
--- a/Tools/GardeningServer/ui/ct-last-updated.html
+++ b/Tools/GardeningServer/ui/ct-last-updated.html
@@ -22,10 +22,7 @@ found in the LICENSE file.
return date.getHours();
},
_minutes: function(date) {
- var s = date.getMinutes().toString();
- if (s.length == 1)
- s = "0" + s;
- return s;
+ return date.getMinutes().toString().padLeft(2, '0');
},
});
})();

Powered by Google App Engine
This is Rietveld 408576698