Re-enable index-basics-workers test to see if still times
[chromium-blink-merge.git] / tools / cc-frame-viewer / src / tree_quad_view_test.html
blobb987c83c30f7aab3e2747076a0e48abbabf8b366
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('tree_quad_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 TreeQuadView = ccfv.TreeQuadView;
23 function testSimpleColorMap() {
24 var model = new ccfv.Model();
25 model.initFromTraceEvents(gFullTraceButWithOnlyOneFrame);
26 var lthiHistory = base.dictionaryValues(model.lthiHistories)[0];
27 var lthi = lthiHistory.lthiSnapshots[0];
29 var view = new TreeQuadView();
30 view.title = 'test';
31 view.viewport = new ccfv.QuadViewViewport(lthi.activeTree.tileBBox);
32 view.which_tree = lthi.activeTree.which_tree;
33 view.tiles = lthi.activeTree.tiles;
35 this.addHTMLOutput('view', view);
37 </script>
38 </body>
39 </html>