OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 2015 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/base/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/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/model/model.html"> | 10 <link rel="import" href="/tracing/model/model.html"> |
11 <link rel="import" href="/tracing/model/power_series.html"> | 11 <link rel="import" href="/tracing/model/power_series.html"> |
12 <link rel="import" href="/tracing/ui/analysis/single_power_sample_sub_view.html"
> | 12 <link rel="import" href="/tracing/ui/analysis/single_power_sample_sub_view.html"
> |
13 | 13 |
14 <script> | 14 <script> |
15 'use strict'; | 15 'use strict'; |
16 | 16 |
17 tr.b.unittest.testSuite(function() { | 17 tr.b.unittest.testSuite(function() { |
18 test('instantiate', function() { | 18 test('instantiate', function() { |
(...skipping 14 matching lines...) Expand all Loading... |
33 | 33 |
34 const view = document.createElement('tr-ui-a-single-power-sample-sub-view'); | 34 const view = document.createElement('tr-ui-a-single-power-sample-sub-view'); |
35 const eventSet = new tr.model.EventSet(series.samples); | 35 const eventSet = new tr.model.EventSet(series.samples); |
36 view.selection = eventSet; | 36 view.selection = eventSet; |
37 | 37 |
38 assert.deepEqual(view.$.samplesTable.sample, | 38 assert.deepEqual(view.$.samplesTable.sample, |
39 tr.b.getOnlyElement(series.samples)); | 39 tr.b.getOnlyElement(series.samples)); |
40 }); | 40 }); |
41 }); | 41 }); |
42 </script> | 42 </script> |
OLD | NEW |