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

Unified Diff: tracing/tracing/model/memory_dump_test_utils.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
« no previous file with comments | « tracing/tracing/model/memory_allocator_dump.html ('k') | tracing/tracing/model/model.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/memory_dump_test_utils.html
diff --git a/tracing/tracing/model/memory_dump_test_utils.html b/tracing/tracing/model/memory_dump_test_utils.html
index 532d5332a75f0eff504bab8eda30346ddb00aa7a..2ea8fd83e001c786169d8df9b0a9a8c90f5b6001 100644
--- a/tracing/tracing/model/memory_dump_test_utils.html
+++ b/tracing/tracing/model/memory_dump_test_utils.html
@@ -32,15 +32,17 @@ tr.exportTo('tr.model', function() {
var LIGHT = tr.model.ContainerMemoryDump.LevelOfDetail.LIGHT;
function castToScalar(value) {
- if (typeof value === 'number')
+ if (typeof value === 'number') {
return new Scalar(sizeInBytes_smallerIsBetter, value);
+ }
assert.instanceOf(value, Scalar);
return value;
}
function getOption(opt_options, key, opt_defaultValue) {
- if (opt_options && (key in opt_options))
+ if (opt_options && (key in opt_options)) {
return opt_options[key];
+ }
return opt_defaultValue;
}
@@ -177,13 +179,15 @@ tr.exportTo('tr.model', function() {
};
MemoryDumpTestUtils.checkVMRegions = function(vmRegions, expectedRegions) {
- if (vmRegions instanceof VMRegionClassificationNode)
+ if (vmRegions instanceof VMRegionClassificationNode) {
vmRegions = vmRegions.allRegionsForTesting;
+ }
var expectedRegionsMap = new Map();
expectedRegions.forEach(function(region) {
- if (!(region instanceof VMRegion))
+ if (!(region instanceof VMRegion)) {
region = VMRegion.fromDict(region);
+ }
expectedRegionsMap.set(region.uniqueIdWithinProcess, region);
});
var actualRegionsMap = new Map();
« no previous file with comments | « tracing/tracing/model/memory_allocator_dump.html ('k') | tracing/tracing/model/model.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698