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

Side by Side Diff: tracing/tracing/ui/base/name_bar_chart_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/ui/base/name_bar_chart.html"> 8 <link rel="import" href="/tracing/ui/base/name_bar_chart.html">
9 9
10 <script> 10 <script>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 currentMouseIndex) + 1); 93 currentMouseIndex) + 1);
94 chart.brushedRange = r; 94 chart.brushedRange = r;
95 } 95 }
96 96
97 chart.addEventListener('item-mousedown', function(e) { 97 chart.addEventListener('item-mousedown', function(e) {
98 mouseDownIndex = e.index; 98 mouseDownIndex = e.index;
99 currentMouseIndex = e.index; 99 currentMouseIndex = e.index;
100 updateBrushedRange(); 100 updateBrushedRange();
101 }); 101 });
102 chart.addEventListener('item-mousemove', function(e) { 102 chart.addEventListener('item-mousemove', function(e) {
103 if (e.button === undefined) 103 if (e.button === undefined) return;
104 return; 104
105 currentMouseIndex = e.index; 105 currentMouseIndex = e.index;
106 updateBrushedRange(); 106 updateBrushedRange();
107 }); 107 });
108 chart.addEventListener('item-mouseup', function(e) { 108 chart.addEventListener('item-mouseup', function(e) {
109 currentMouseIndex = e.index; 109 currentMouseIndex = e.index;
110 updateBrushedRange(); 110 updateBrushedRange();
111 }); 111 });
112 }); 112 });
113 }); 113 });
114 </script> 114 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698