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); |