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

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

Issue 336793004: Revert 277111 "Roll ICU to icu52" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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: trunk/src/chrome/browser/ui/webui/identity_internals_ui_browsertest.js
===================================================================
--- trunk/src/chrome/browser/ui/webui/identity_internals_ui_browsertest.js (revision 277116)
+++ trunk/src/chrome/browser/ui/webui/identity_internals_ui_browsertest.js (working copy)
@@ -43,10 +43,8 @@
* @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.replace(' at ', ' '));
+ .innerText);
},
/**
@@ -164,11 +162,9 @@
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.replace(' at ', ' ')));
+ .innerText));
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