OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 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/core/test_utils.html"> | 9 <link rel="import" href="/tracing/core/test_utils.html"> |
10 <link rel="import" href="/tracing/model/event_set.html"> | 10 <link rel="import" href="/tracing/model/event_set.html"> |
11 <link rel="import" href="/tracing/model/model.html"> | 11 <link rel="import" href="/tracing/model/model.html"> |
12 <link rel="import" href="/tracing/ui/analysis/analysis_view.html"> | 12 <link rel="import" href="/tracing/ui/analysis/analysis_view.html"> |
13 <link rel="import" href="/tracing/ui/base/deep_utils.html"> | 13 <link rel="import" href="/tracing/ui/base/deep_utils.html"> |
14 | 14 |
15 <script> | 15 <script> |
16 'use strict'; | 16 'use strict'; |
17 | 17 |
18 tr.b.unittest.testSuite(function() { | 18 tr.b.unittest.testSuite(function() { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const subView = document.createElement('tr-ui-a-alert-sub-view'); | 73 const subView = document.createElement('tr-ui-a-alert-sub-view'); |
74 subView.selection = new tr.model.EventSet([alert1, alert2]); | 74 subView.selection = new tr.model.EventSet([alert1, alert2]); |
75 assert.isTrue(subView.relatedEventsToHighlight.equals( | 75 assert.isTrue(subView.relatedEventsToHighlight.equals( |
76 new tr.model.EventSet([ | 76 new tr.model.EventSet([ |
77 tr.b.getOnlyElement(alert1.associatedEvents), | 77 tr.b.getOnlyElement(alert1.associatedEvents), |
78 tr.b.getOnlyElement(alert2.associatedEvents) | 78 tr.b.getOnlyElement(alert2.associatedEvents) |
79 ]))); | 79 ]))); |
80 }); | 80 }); |
81 }); | 81 }); |
82 </script> | 82 </script> |
OLD | NEW |