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

Unified Diff: tracing/tracing/model/cpu_test.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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
Index: tracing/tracing/model/cpu_test.html
diff --git a/tracing/tracing/model/cpu_test.html b/tracing/tracing/model/cpu_test.html
index 06c406d82cde2077cd57c50412ca2c5c99678584..abcff21f4eb024109ad60c24d3c516602f2f0add 100644
--- a/tracing/tracing/model/cpu_test.html
+++ b/tracing/tracing/model/cpu_test.html
@@ -45,8 +45,9 @@ tr.b.unittest.testSuite(function() {
cpu.slices.push(tr.c.TestUtils.newSliceEx({start: 1, duration: 3}));
var shiftCount = 0;
ctr.shiftTimestampsForward = function(ts) {
- if (ts === 0.32)
+ if (ts === 0.32) {
shiftCount++;
+ }
};
cpu.slices.push(tr.c.TestUtils.newSliceEx({start: 1, duration: 3}));
cpu.shiftTimestampsForward(0.32);
@@ -59,8 +60,9 @@ tr.b.unittest.testSuite(function() {
var s = new tr.model.CpuSlice(
'cat', name, 0, start, {}, duration);
s.cpu = cpu;
- if (opt_thread)
+ if (opt_thread) {
s.threadThatWasRunning = opt_thread;
+ }
return s;
}

Powered by Google App Engine
This is Rietveld 408576698