OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 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/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
10 <link rel="import" href="/tracing/ui/analysis/multi_sample_sub_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/multi_sample_sub_view.html"> |
(...skipping 15 matching lines...) Expand all Loading... |
26 model.samples.push( | 26 model.samples.push( |
27 newSampleNamed(t53, 'X', 'cat', trace, index * 0.02)); | 27 newSampleNamed(t53, 'X', 'cat', trace, index * 0.02)); |
28 }); | 28 }); |
29 } | 29 } |
30 }); | 30 }); |
31 | 31 |
32 var t53track = {}; | 32 var t53track = {}; |
33 t53track.thread = t53; | 33 t53track.thread = t53; |
34 | 34 |
35 var selection = new tr.model.EventSet(); | 35 var selection = new tr.model.EventSet(); |
36 for (var i = 0; i < t53.samples.length; i++) | 36 for (var i = 0; i < t53.samples.length; i++) { |
37 selection.push(t53.samples[i]); | 37 selection.push(t53.samples[i]); |
| 38 } |
38 | 39 |
39 var view = document.createElement('tr-ui-a-multi-sample-sub-view'); | 40 var view = document.createElement('tr-ui-a-multi-sample-sub-view'); |
40 view.style.height = '500px'; | 41 view.style.height = '500px'; |
41 this.addHTMLOutput(view); | 42 this.addHTMLOutput(view); |
42 view.selection = selection; | 43 view.selection = selection; |
43 return view; | 44 return view; |
44 } | 45 } |
45 | 46 |
46 test('instantiate_flat', function() { | 47 test('instantiate_flat', function() { |
47 instantiateWithTraces.call(this, [ | 48 instantiateWithTraces.call(this, [ |
(...skipping 13 matching lines...) Expand all Loading... |
61 ['AAA', 'BBB'], | 62 ['AAA', 'BBB'], |
62 ['AAA', 'BBB', 'CCC'], | 63 ['AAA', 'BBB', 'CCC'], |
63 ['AAA', 'BBB'], | 64 ['AAA', 'BBB'], |
64 ['BBB', 'AAA', 'BBB'], | 65 ['BBB', 'AAA', 'BBB'], |
65 ['BBB', 'AAA', 'BBB'], | 66 ['BBB', 'AAA', 'BBB'], |
66 ['BBB', 'AAA', 'BBB'] | 67 ['BBB', 'AAA', 'BBB'] |
67 ]); | 68 ]); |
68 }); | 69 }); |
69 }); | 70 }); |
70 </script> | 71 </script> |
OLD | NEW |