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/core/test_utils.html"> | 8 <link rel="import" href="/tracing/core/test_utils.html"> |
| 9 <link rel="import" href="/tracing/ui/base/ui_state.html"> |
9 <link rel="import" href="/tracing/ui/tracks/track.html"> | 10 <link rel="import" href="/tracing/ui/tracks/track.html"> |
10 <link rel="import" href="/tracing/ui/base/ui_state.html"> | |
11 | 11 |
12 <script> | 12 <script> |
13 'use strict'; | 13 'use strict'; |
14 | 14 |
15 tr.b.unittest.testSuite(function() { | 15 tr.b.unittest.testSuite(function() { |
16 var UIState = tr.ui.b.UIState; | 16 var UIState = tr.ui.b.UIState; |
17 | 17 |
18 function FakeModel() { | 18 function FakeModel() { |
19 this.processes = { 1: { threads: { 2: { stableId: '1.2' } } } }; | 19 this.processes = { 1: { threads: { 2: { stableId: '1.2' } } } }; |
20 } | 20 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 assert.equal(uiState.location.xWorld, -50125.51231); | 90 assert.equal(uiState.location.xWorld, -50125.51231); |
91 assert.equal( | 91 assert.equal( |
92 uiState.location.getContainingTrack(vp).eventContainer.stableId, | 92 uiState.location.getContainingTrack(vp).eventContainer.stableId, |
93 '1.2'); | 93 '1.2'); |
94 assert.equal(uiState.scaleX, 1.12345); | 94 assert.equal(uiState.scaleX, 1.12345); |
95 | 95 |
96 assert.equal(uiState.toUserFriendlyString(vp), str); | 96 assert.equal(uiState.toUserFriendlyString(vp), str); |
97 }); | 97 }); |
98 }); | 98 }); |
99 </script> | 99 </script> |
OLD | NEW |