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

Unified Diff: tracing/tracing/ui/tracks/cpu_usage_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/cpu_track.html ('k') | tracing/tracing/ui/tracks/drawing_container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/cpu_usage_track_test.html
diff --git a/tracing/tracing/ui/tracks/cpu_usage_track_test.html b/tracing/tracing/ui/tracks/cpu_usage_track_test.html
index 4c9df16d679c14eb4af176b4de378af14022f6e2..bf4347e26ae54208e8816135c108a73a048c9323 100644
--- a/tracing/tracing/ui/tracks/cpu_usage_track_test.html
+++ b/tracing/tracing/ui/tracks/cpu_usage_track_test.html
@@ -42,8 +42,9 @@ tr.b.unittest.testSuite(function() {
// is not always 100% accurate.
function assertArrayValuesCloseTo(actualValue, expectedValue) {
assert.lengthOf(actualValue, expectedValue.length);
- for (var i = 0; i < expectedValue.length; i++)
+ for (var i = 0; i < expectedValue.length; i++) {
assert.closeTo(actualValue[i], expectedValue[i], DIFF_EPSILON);
+ }
}
function createCpuUsageTrack(model, interval) {
@@ -52,8 +53,9 @@ tr.b.unittest.testSuite(function() {
var drawingContainer = new tr.ui.tracks.DrawingContainer(viewport);
div.appendChild(drawingContainer);
var track = new tr.ui.tracks.CpuUsageTrack(drawingContainer.viewport);
- if (model !== undefined)
+ if (model !== undefined) {
setDisplayTransformFromBounds(viewport, model.bounds);
+ }
track.initialize(model, interval);
drawingContainer.appendChild(track);
this.addHTMLOutput(drawingContainer);
« no previous file with comments | « tracing/tracing/ui/tracks/cpu_track.html ('k') | tracing/tracing/ui/tracks/drawing_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698