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('layer_impl_view');
13 base
.require('model');
17 <script src=
"../unittest_data/one_frame_with_layers.js"></script>
21 function testInstantiateLTIV() {
22 var model
= new ccfv
.Model();
23 model
.initFromFrameData(gOneFrameWithLayers
);
24 var lthiHistory
= base
.dictionaryValues(model
.lthiHistories
)[0];
25 var lthi
= lthiHistory
.lthiSnapshots
[0];
27 var layerImplView
= new ccfv
.LayerImplView();
28 this.addHTMLOutput('LTIView', layerImplView
);
29 layerImplView
.layerImpl
= lthi
.activeTree
.allLayers
[0];