4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
9 <script src=
"base.js"></script>
11 base
.require('base.unittest');
12 base
.require('tile_view');
13 base
.require('model');
17 <script src=
"../unittest_data/full_trace_but_with_only_one_frame.js"></script>
21 var Model
= ccfv
.Model
;
22 var TileView
= ccfv
.TileView
;
24 function testInstantiate() {
25 var model
= new Model();
26 model
.initFromTraceEvents(gFullTraceButWithOnlyOneFrame
);
27 var lthiHistory
= base
.dictionaryValues(model
.lthiHistories
)[0];
28 var lthi
= lthiHistory
.lthiSnapshots
[0];
31 var tileView
= new TileView();
32 this.addHTMLOutput('Tile View', tileView
);
34 tileView
.tile
= lthi
.activeTree
.tiles
[0];