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

Unified Diff: tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_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/ui/analysis/memory_dump_vm_regions_details_pane_test.html
diff --git a/tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_test.html b/tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_test.html
index cd1e58180bc58d32a453c14ae09071d272b530b5..170744c8d4b574a53bb0c59b97e7638e6a3b6d28 100644
--- a/tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_test.html
+++ b/tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_test.html
@@ -232,17 +232,19 @@ tr.b.unittest.testSuite(function() {
checkSizeNumericFields(row, columns[5], expectedPrivateDirtyResidentValues);
checkSizeNumericFields(row, columns[6], expectedSwappedValues);
- if (expectedSubRowCount === undefined)
+ if (expectedSubRowCount === undefined) {
assert.isUndefined(row.subRows);
- else
+ } else {
assert.lengthOf(row.subRows, expectedSubRowCount);
+ }
- if (typeof expectedContexts === 'function')
+ if (typeof expectedContexts === 'function') {
expectedContexts(row.contexts);
- else if (expectedContexts !== undefined)
+ } else if (expectedContexts !== undefined) {
assert.deepEqual(tr.b.asArray(row.contexts), expectedContexts);
- else
+ } else {
assert.isUndefined(row.contexts);
+ }
}
function genericMatcher(callback, defined) {
@@ -250,10 +252,11 @@ tr.b.unittest.testSuite(function() {
assert.lengthOf(actualValues, defined.length);
for (var i = 0; i < defined.length; i++) {
var actualValue = actualValues[i];
- if (defined[i])
+ if (defined[i]) {
callback(actualValue);
- else
+ } else {
assert.isUndefined(actualValue);
+ }
}
};
}

Powered by Google App Engine
This is Rietveld 408576698