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

Unified Diff: Tools/GardeningServer/ui/test/ct-last-updated-tests.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/test/ct-last-updated-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-last-updated-tests.html b/Tools/GardeningServer/ui/test/ct-last-updated-tests.html
index 8f56d90d5b0b53f77802d4642063cab0d929336a..95ee798a3b0fae6dbaa967e351eccf844a06f39c 100644
--- a/Tools/GardeningServer/ui/test/ct-last-updated-tests.html
+++ b/Tools/GardeningServer/ui/test/ct-last-updated-tests.html
@@ -24,7 +24,7 @@ describe('ct-last-updated', function() {
it('should have correct text', function() {
var expected = 'Updated 5 min ago @ ' + lastUpdated.date.getHours() + ':' +
- lastUpdated.date.getMinutes();
+ lastUpdated.date.getMinutes().toString().padLeft(2, '0');
ojan 2014/08/14 01:26:48 Can you modify this test to give repeatable result
assert.include(lastUpdated.shadowRoot.innerHTML.trim(), expected);
});
});

Powered by Google App Engine
This is Rietveld 408576698