Re-enable index-basics-workers test to see if still times
[chromium-blink-merge.git] / tools / cc-frame-viewer / src / analysis_view_test.html
blobfd55621e76368145d0f1c9571000aac16a4de542
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('analysis_view');
13 base.require('model');
14 </script>
15 </head>
16 <body>
17 <script src="../unittest_data/full_trace_but_with_only_one_frame.js"></script>
18 <script>
19 'use strict';
21 var Model = ccfv.Model;
22 var AnalysisView = ccfv.AnalysisView;
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];
30 var analysisView = new AnalysisView();
31 this.addHTMLOutput('Analysis View', analysisView);
33 analysisView.selection = {
34 activate: function() {},
35 deactivate: function() {},
36 tiles: [lthi.activeTree.tiles[0],
37 lthi.activeTree.tiles[1]]
40 </script>
41 </body>
42 </html>