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); |
+ } |
} |
}; |
} |