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/object_instance.html"> |
9 <link rel="import" href="/tracing/model/time_to_object_instance_map.html"> | 10 <link rel="import" href="/tracing/model/time_to_object_instance_map.html"> |
10 <link rel="import" href="/tracing/model/object_instance.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 createObjectInstance = function(parent, id, category, name, creationTs) { | 16 var createObjectInstance = function(parent, id, category, name, creationTs) { |
17 return new tr.model.ObjectInstance( | 17 return new tr.model.ObjectInstance( |
18 parent, id, category, name, creationTs); | 18 parent, id, category, name, creationTs); |
19 }; | 19 }; |
20 | 20 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 assert.equal(i10.creationTs, 10); | 155 assert.equal(i10.creationTs, 10); |
156 assert.equal(i10.deletionTs, 20); | 156 assert.equal(i10.deletionTs, 20); |
157 assert.notEqual(i25, i10); | 157 assert.notEqual(i25, i10); |
158 assert.equal(i25.creationTs, 25); | 158 assert.equal(i25.creationTs, 25); |
159 assert.equal(i25.deletionTs, Number.MAX_VALUE); | 159 assert.equal(i25.deletionTs, Number.MAX_VALUE); |
160 }); | 160 }); |
161 }); | 161 }); |
162 </script> | 162 </script> |
163 | 163 |
OLD | NEW |