OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <!-- | |
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. | |
7 --> | |
8 <head> | |
9 <script src="base.js"></script> | |
10 <script> | |
11 base.require('base.unittest'); | |
12 base.require('layer_tree_impl_view'); | |
13 base.require('model'); | |
14 </script> | |
15 </head> | |
16 <body> | |
17 <script src="../unittest_data/one_frame_with_layers.js"></script> | |
18 <script> | |
19 'use strict'; | |
20 | |
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]; | |
26 | |
27 var ltiView = new ccfv.LayerTreeImplView(); | |
28 this.addHTMLOutput('LTIView', ltiView); | |
29 ltiView.layerTreeImpl = lthi.activeTree; | |
30 } | |
31 </script> | |
32 </body> | |
33 </html> | |
OLD | NEW |