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

Side by Side Diff: tracing/tracing/ui/tracks/counter_track_perf_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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/core/test_utils.html"> 8 <link rel="import" href="/tracing/core/test_utils.html">
9 <link rel="import" href="/tracing/model/model.html"> 9 <link rel="import" href="/tracing/model/model.html">
10 <link rel="import" href="/tracing/ui/extras/full_config.html"> 10 <link rel="import" href="/tracing/ui/extras/full_config.html">
(...skipping 20 matching lines...) Expand all
31 var drawingContainer; 31 var drawingContainer;
32 var viewportDiv; 32 var viewportDiv;
33 33
34 var viewportWidth; 34 var viewportWidth;
35 var worldMid; 35 var worldMid;
36 36
37 var startScale = undefined; 37 var startScale = undefined;
38 38
39 function timedCounterTrackPerfTest(name, testFn, iterations) { 39 function timedCounterTrackPerfTest(name, testFn, iterations) {
40 function setUpOnce() { 40 function setUpOnce() {
41 if (model !== undefined) 41 if (model !== undefined) return;
42 return; 42
43 var fileUrl = '/test_data/counter_tracks.html'; 43 var fileUrl = '/test_data/counter_tracks.html';
44 var events = getSynchronous(fileUrl); 44 var events = getSynchronous(fileUrl);
45 model = tr.c.TestUtils.newModelWithEvents([events]); 45 model = tr.c.TestUtils.newModelWithEvents([events]);
46 } 46 }
47 47
48 function setUp() { 48 function setUp() {
49 setUpOnce(); 49 setUpOnce();
50 viewportDiv = document.createElement('div'); 50 viewportDiv = document.createElement('div');
51 51
52 var viewport = new tr.ui.TimelineViewport(viewportDiv); 52 var viewport = new tr.ui.TimelineViewport(viewportDiv);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 dt.scaleX = scale; 119 dt.scaleX = scale;
120 dt.xPanWorldPosToViewPos(worldMid, 'center', viewportWidth); 120 dt.xPanWorldPosToViewPos(worldMid, 'center', viewportWidth);
121 drawingContainer.viewport.setDisplayTransformImmediately(dt); 121 drawingContainer.viewport.setDisplayTransformImmediately(dt);
122 drawingContainer.draw_(); 122 drawingContainer.draw_();
123 } 123 }
124 }, val); 124 }, val);
125 }); 125 });
126 }); 126 });
127 </script> 127 </script>
128 128
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698