OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <!-- | 3 <!-- |
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 5 Use of this source code is governed by a BSD-style license that can be |
6 found in the LICENSE file. | 6 found in the LICENSE file. |
7 --> | 7 --> |
8 <head> | 8 <head> |
9 <script src="base.js"></script> | 9 <script src="base.js"></script> |
10 <script> | 10 <script> |
11 base.require('base.unittest'); | 11 base.require('base.unittest'); |
12 base.require('lthi_view'); | 12 base.require('layer_impl_view'); |
13 base.require('model'); | 13 base.require('model'); |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 <body> | 16 <body> |
17 <script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script> | 17 <script src="../unittest_data/one_frame_with_layers.js"></script> |
18 <script> | 18 <script> |
19 'use strict'; | 19 'use strict'; |
20 | 20 |
21 var Model = ccfv.Model; | 21 function testInstantiateLTIV() { |
22 | 22 var model = new ccfv.Model(); |
23 function testInstantiate() { | 23 model.initFromFrameData(gOneFrameWithLayers); |
24 var model = new Model(); | |
25 model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame); | |
26 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0]; | 24 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0]; |
27 var lthi = lthiHistory.lthiSnapshots[0]; | 25 var lthi = lthiHistory.lthiSnapshots[0]; |
28 | 26 |
29 var lthiView = new ccfv.LTHIView(); | 27 var layerImplView = new ccfv.LayerImplView(); |
30 this.addHTMLOutput('LTHI View', lthiView); | 28 this.addHTMLOutput('LTIView', layerImplView); |
31 lthiView.lthi = lthi; | 29 layerImplView.layerImpl = lthi.activeTree.allLayers[0]; |
32 lthiView.style.height = 800; | |
33 } | 30 } |
34 </script> | 31 </script> |
35 </body> | 32 </body> |
36 </html> | 33 </html> |
OLD | NEW |