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

Unified Diff: chrome/browser/ui/webui/identity_internals_ui_browsertest.js

Issue 265613002: Roll ICU to icu52 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 5 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: chrome/browser/ui/webui/identity_internals_ui_browsertest.js
===================================================================
--- chrome/browser/ui/webui/identity_internals_ui_browsertest.js (revision 283797)
+++ chrome/browser/ui/webui/identity_internals_ui_browsertest.js (working copy)
@@ -43,8 +43,10 @@
* @return {Date} Expiration date of the token.
*/
getExpirationTime: function(tokenEntry) {
+ // Full-date format has 'at' between date and time in en-US, but
+ // ECMAScript's Date.parse cannot grok it.
return Date.parse(tokenEntry.querySelector('.expiration-time')
- .innerText);
+ .innerText.replace(' at ', ' '));
},
/**
@@ -162,9 +164,11 @@
tokenListEntries[0].querySelector('.access-token').innerText);
expectEquals(this.getTokenStatus(tokenListEntries[0]),
tokenListEntries[0].querySelector('.token-status').innerText);
+ // Full-date format has 'at' between date and time in en-US, but
+ // ECMAScript's Date.parse cannot grok it.
expectEquals(this.getExpirationTime(tokenListEntries[0]),
Date.parse(tokenListEntries[0].querySelector('.expiration-time')
- .innerText));
+ .innerText.replace(' at ', ' ')));
var scopes = tokenListEntries[0].querySelector('.scope-list')
.innerHTML.split('<br>');
var actualScopes = this.getScopes(tokenListEntries[0]);

Powered by Google App Engine
This is Rietveld 408576698