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

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: rebase 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 c04e56b067c455afea69b2e7d8b1f05030e90f91..5c874720961255a4a85a4e870cfe0caac2aee643 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');
« no previous file with comments | « tracing/tracing/metrics/system_health/memory_metric.html ('k') | tracing/tracing/metrics/system_health/power_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698