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/ui/timeline_track_view.html"> | 9 <link rel="import" href="/tracing/ui/timeline_track_view.html"> |
10 <link rel="import" href="/tracing/model/slice_group.html"> | 10 <link rel="import" href="/tracing/model/slice_group.html"> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 var process = model.getOrCreateProcess(123); | 249 var process = model.getOrCreateProcess(123); |
250 var thread = process.getOrCreateThread(456); | 250 var thread = process.getOrCreateThread(456); |
251 var group = new SliceGroup(thread); | 251 var group = new SliceGroup(thread); |
252 | 252 |
253 var processTrack = new ProcessTrack(vp); | 253 var processTrack = new ProcessTrack(vp); |
254 var threadTrack = new ThreadTrack(vp); | 254 var threadTrack = new ThreadTrack(vp); |
255 var groupTrack = new SliceGroupTrack(vp); | 255 var groupTrack = new SliceGroupTrack(vp); |
256 processTrack.process = process; | 256 processTrack.process = process; |
257 threadTrack.thread = thread; | 257 threadTrack.thread = thread; |
258 groupTrack.group = group; | 258 groupTrack.group = group; |
259 processTrack.appendChild(threadTrack); | 259 Polymer.dom(processTrack).appendChild(threadTrack); |
260 threadTrack.appendChild(groupTrack); | 260 Polymer.dom(threadTrack).appendChild(groupTrack); |
261 | 261 |
262 assert.equal(processTrack.eventContainer, process); | 262 assert.equal(processTrack.eventContainer, process); |
263 assert.equal(threadTrack.eventContainer, thread); | 263 assert.equal(threadTrack.eventContainer, thread); |
264 assert.equal(groupTrack.eventContainer, group); | 264 assert.equal(groupTrack.eventContainer, group); |
265 | 265 |
266 assert.isUndefined(containerToTrack.getTrackByStableId('123')); | 266 assert.isUndefined(containerToTrack.getTrackByStableId('123')); |
267 assert.isUndefined(containerToTrack.getTrackByStableId('123.456')); | 267 assert.isUndefined(containerToTrack.getTrackByStableId('123.456')); |
268 assert.isUndefined( | 268 assert.isUndefined( |
269 containerToTrack.getTrackByStableId('123.456.SliceGroup')); | 269 containerToTrack.getTrackByStableId('123.456.SliceGroup')); |
270 | 270 |
(...skipping 13 matching lines...) Expand all Loading... |
284 groupTrack); | 284 groupTrack); |
285 | 285 |
286 // Check the track's eventContainer getter. | 286 // Check the track's eventContainer getter. |
287 assert.equal(processTrack.eventContainer, process); | 287 assert.equal(processTrack.eventContainer, process); |
288 assert.equal(threadTrack.eventContainer, thread); | 288 assert.equal(threadTrack.eventContainer, thread); |
289 assert.equal(groupTrack.eventContainer, group); | 289 assert.equal(groupTrack.eventContainer, group); |
290 }); | 290 }); |
291 }); | 291 }); |
292 </script> | 292 </script> |
293 | 293 |
OLD | NEW |