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('model_view'); | |
13 </script> | |
14 </head> | |
15 <body> | |
16 <script src="../unittest_data/full_trace_but_with_only_two_frames.js"></script> | |
17 <script src="../unittest_data/one_frame_with_layers.js"></script> | |
18 <script> | |
19 'use strict'; | |
20 | |
21 var Model = ccfv.Model; | |
22 var ModelView = ccfv.ModelView; | |
23 | |
24 function testTwoFramesAndTiles() { | |
25 var model = new Model(); | |
26 model.initFromTraceEvents(gFullTraceButWithOnlyTwoFrames); | |
27 var modelView = new ModelView(); | |
28 this.addHTMLOutput('Model Tiles', modelView); | |
29 modelView.model = model; | |
30 modelView.style.height = '600px'; | |
31 } | |
32 | |
33 function testLayers() { | |
34 var model = new Model(); | |
35 model.initFromFrameData(gOneFrameWithLayers); | |
36 var modelView = new ModelView(); | |
37 this.addHTMLOutput('Model with Layers', modelView); | |
38 modelView.model = model; | |
39 modelView.style.height = '600px'; | |
40 } | |
41 </script> | |
42 </body> | |
43 </html> | |
OLD | NEW |