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

Unified Diff: tracing/tracing/extras/tquery/tquery_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/extras/tquery/tquery.html ('k') | tracing/tracing/extras/vsync/vsync_auditor.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/extras/tquery/tquery_test.html
diff --git a/tracing/tracing/extras/tquery/tquery_test.html b/tracing/tracing/extras/tquery/tquery_test.html
index a9bd47330098a490653c728e36096f18b5fa40af..676b81f8aa2168e991c7405257c0f1405bc02155 100644
--- a/tracing/tracing/extras/tquery/tquery_test.html
+++ b/tracing/tracing/extras/tquery/tquery_test.html
@@ -17,16 +17,18 @@ found in the LICENSE file.
tr.b.unittest.testSuite(function() {
function createTestModel(sliceCount) {
var slices = [];
- for (var i = 0; i < sliceCount; i++)
+ for (var i = 0; i < sliceCount; i++) {
slices.push(tr.c.TestUtils.newSliceEx({start: 1, duration: 2}));
+ }
return createTestModelWithSlices(slices);
}
function createTestModelWithSlices(slices) {
var model = new tr.Model();
var cpu = model.kernel.getOrCreateCpu(1);
- for (var i = 0; i < slices.length; i++)
+ for (var i = 0; i < slices.length; i++) {
cpu.slices.push(slices[i]);
+ }
return model;
}
@@ -144,8 +146,9 @@ tr.b.unittest.testSuite(function() {
var result = tquery.filter(anyOf('a', 'b')).selection;
assert.equal(result.length, 2);
var nextGuid = 1;
- for (var event of result)
+ for (var event of result) {
assert.equal(event.guid, nextGuid++);
+ }
var result = tquery.filter(anyOf('not there', 'a')).selection;
assert.equal(result.length, 1);
@@ -167,8 +170,9 @@ tr.b.unittest.testSuite(function() {
var result = tquery.filter(isTopLevel()).selection;
assert.equal(result.length, 3);
var nextGuid = 1;
- for (var event of result)
+ for (var event of result) {
assert.equal(event.guid, nextGuid++);
+ }
var result = tquery.filter(isTopLevel('a')).selection;
assert.equal(result.length, 1);
« no previous file with comments | « tracing/tracing/extras/tquery/tquery.html ('k') | tracing/tracing/extras/vsync/vsync_auditor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698