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

Unified Diff: tracing/tracing/ui/tracks/counter_track_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/ui/tracks/counter_track_perf_test.html ('k') | tracing/tracing/ui/tracks/cpu_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/counter_track_test.html
diff --git a/tracing/tracing/ui/tracks/counter_track_test.html b/tracing/tracing/ui/tracks/counter_track_test.html
index 4a1b8b0badc9c235a268e40345dac113d59d6fe8..6254094d1dd435ac870e6a2f5b2b1e7b62bde8ab 100644
--- a/tracing/tracing/ui/tracks/counter_track_test.html
+++ b/tracing/tracing/ui/tracks/counter_track_test.html
@@ -161,15 +161,17 @@ tr.b.unittest.testSuite(function() {
var sel = new tr.model.EventSet();
track.addClosestEventToSelection(-1, 1, 0, 0, sel);
assert.equal(sel.length, 2);
- for (var event of sel)
+ for (var event of sel) {
assert.equal(event.getSampleIndex(), 0);
+ }
// Between and closer to sample before.
var sel = new tr.model.EventSet();
track.addClosestEventToSelection(1.3, 1, 0, 0, sel);
assert.equal(sel.length, 2);
- for (var event of sel)
+ for (var event of sel) {
assert.equal(event.getSampleIndex(), 1);
+ }
// Between samples with bad range.
var sel = new tr.model.EventSet();
@@ -180,15 +182,17 @@ tr.b.unittest.testSuite(function() {
var sel = new tr.model.EventSet();
track.addClosestEventToSelection(4.7, 6, 0, 0, sel);
assert.equal(sel.length, 2);
- for (var event of sel)
+ for (var event of sel) {
assert.equal(event.getSampleIndex(), 5);
+ }
// After last sample with good range.
var sel = new tr.model.EventSet();
track.addClosestEventToSelection(8.5, 2, 0, 0, sel);
assert.equal(sel.length, 2);
- for (var event of sel)
+ for (var event of sel) {
assert.equal(event.getSampleIndex(), 7);
+ }
// After last sample with bad range.
var sel = new tr.model.EventSet();
« no previous file with comments | « tracing/tracing/ui/tracks/counter_track_perf_test.html ('k') | tracing/tracing/ui/tracks/cpu_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698