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

Unified Diff: tracing/tracing/metrics/system_health/memory_metric_test.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 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: tracing/tracing/metrics/system_health/memory_metric_test.html
diff --git a/tracing/tracing/metrics/system_health/memory_metric_test.html b/tracing/tracing/metrics/system_health/memory_metric_test.html
index e13d7d644cb684d02348fd9c60bcb398770c32ad..7c36eb4e989d3d191b6edafbd15f78953ee878c1 100644
--- a/tracing/tracing/metrics/system_health/memory_metric_test.html
+++ b/tracing/tracing/metrics/system_health/memory_metric_test.html
@@ -43,8 +43,9 @@ tr.b.unittest.testSuite(function() {
var fakeValueList = {
addHistogram: function(value) {
var values = valueNameToValues[value.name];
- if (values === undefined)
+ if (values === undefined) {
valueNameToValues[value.name] = values = [];
+ }
values.push(value);
}
};
@@ -67,8 +68,9 @@ tr.b.unittest.testSuite(function() {
} else {
valueNames.forEach(function(valueName) {
errorMessageParts.push('\n');
- if (!otherValueNamesSet.has(valueName))
+ if (!otherValueNamesSet.has(valueName)) {
errorMessageParts.push('+++');
+ }
errorMessageParts.push(valueName);
});
}
@@ -94,8 +96,9 @@ tr.b.unittest.testSuite(function() {
expectedHistogram.unit.unitName, + ', actual: ' +
actualHistogram.unit.unitName + ')');
- if (!(expectedHistogram.value instanceof Array))
+ if (!(expectedHistogram.value instanceof Array)) {
assert.fail('Test sanity check: expected value must be an array');
+ }
assert.instanceOf(actualHistogram, tr.v.Histogram,
'Invalid \'' + valueName + '\' class');

Powered by Google App Engine
This is Rietveld 408576698