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

Unified Diff: chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 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: chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js b/chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js
index beec2a6e1ca07c518eebee6e987a49db0c5f32d7..1e1d573b9dc61d295951fc599b28097d106875b1 100644
--- a/chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js
+++ b/chrome/browser/resources/chromeos/chromevox/testing/test_msgs.js
@@ -46,17 +46,16 @@ TestMsgs.getMsg = function(messageId, opt_subs) {
}
var messageString = TestMsgs.Untranslated[messageId.toUpperCase()];
if (messageString === undefined) {
- var messageObj = cvox.TestMessages[(
- 'chromevox_' + messageId).toUpperCase()];
+ var messageObj =
+ cvox.TestMessages[('chromevox_' + messageId).toUpperCase()];
if (messageObj === undefined)
throw Error('missing-msg: ' + messageId);
var messageString = messageObj.message;
var placeholders = messageObj.placeholders;
if (placeholders) {
for (name in placeholders) {
- messageString = messageString.replace(
- '$' + name + '$',
- placeholders[name].content);
+ messageString =
+ messageString.replace('$' + name + '$', placeholders[name].content);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698