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

Unified Diff: tracing/tracing/base/multi_dimensional_view_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
« no previous file with comments | « tracing/tracing/base/multi_dimensional_view.html ('k') | tracing/tracing/base/raf.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/multi_dimensional_view_test.html
diff --git a/tracing/tracing/base/multi_dimensional_view_test.html b/tracing/tracing/base/multi_dimensional_view_test.html
index b669db03ac58922bce84cc01986fd3ee12c4dbe2..ebe653f961387e7f818b2fc9e75535082459aa2a 100644
--- a/tracing/tracing/base/multi_dimensional_view_test.html
+++ b/tracing/tracing/base/multi_dimensional_view_test.html
@@ -26,8 +26,9 @@ tr.b.unittest.testSuite(function() {
function assertListStrictEqual(a, b) {
assert.lengthOf(a, b.length);
- for (var i = 0; i < a.length; i++)
+ for (var i = 0; i < a.length; i++) {
assert.strictEqual(a[i], b[i]);
+ }
}
function checkTree(actualTreeRootNode, expectedStructureRootNode) {
@@ -47,8 +48,9 @@ tr.b.unittest.testSuite(function() {
}
function addExpectedStructureToMap(expectedStructureNode, map) {
- if (typeof expectedStructureNode === 'string')
+ if (typeof expectedStructureNode === 'string') {
return; // Reference to another expected structure node.
+ }
var expectedStructureNodeId = expectedStructureNode.id;
if (expectedStructureNodeId !== undefined) {
@@ -59,8 +61,9 @@ tr.b.unittest.testSuite(function() {
var expectedStructureChildren = expectedStructureNode.children;
for (var d = 0; d < expectedStructureChildren.length; d++) {
var expectedStructureDimensionChildren = expectedStructureChildren[d];
- for (var i = 0; i < expectedStructureDimensionChildren.length; i++)
+ for (var i = 0; i < expectedStructureDimensionChildren.length; i++) {
addExpectedStructureToMap(expectedStructureDimensionChildren[i], map);
+ }
}
}
@@ -274,8 +277,9 @@ tr.b.unittest.testSuite(function() {
// children.
nodeInfos.set(node, undefined);
node.children.forEach(function(singleDimensionChildren) {
- for (var child of singleDimensionChildren.values())
+ for (var child of singleDimensionChildren.values()) {
assignNodeIdsToRepeatedNodes(child);
+ }
});
}
assignNodeIdsToRepeatedNodes(root);
@@ -283,8 +287,9 @@ tr.b.unittest.testSuite(function() {
// Track the multi-dimensional path to the current node to generate
// comments.
var paths = new Array(dimensions);
- for (var i = 0; i < paths.length; i++)
+ for (var i = 0; i < paths.length; i++) {
paths[i] = [];
+ }
function withChild(childNode, dimension, callback) {
paths[dimension].push(childNode.title[dimension]);
callback();
@@ -297,15 +302,17 @@ tr.b.unittest.testSuite(function() {
}
paths.forEach(function(dimensionPath, dimensionIndex) {
- if (dimensionIndex > 0)
+ if (dimensionIndex > 0) {
generator.pushComment(', ');
+ }
if (dimensionPath.length === 0) {
generator.pushComment('*');
return;
}
dimensionPath.forEach(function(ancestorTitle, ancestorIndex) {
- if (ancestorIndex > 0)
+ if (ancestorIndex > 0) {
generator.pushComment(' -> ');
+ }
generator.pushComment(ancestorTitle);
});
});
« no previous file with comments | « tracing/tracing/base/multi_dimensional_view.html ('k') | tracing/tracing/base/raf.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698