Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / cc / raster_task_slice_view_test.html
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <link rel="import" href="/cc/raster_task_slice_view.html">
9 <link rel="import" href="/tracing/importer/trace_event_importer.html">
10 <link rel="import" href="/tracing/trace_model.html">
11
12 <script src="/cc/layer_tree_host_impl_test_data.js"></script>
13
14 <script>
15 'use strict';
16
17 tvcm.unittest.testSuite(function() {
18   test('instantiate', function() {
19     var m = new tracing.TraceModel(g_catLTHIEvents);
20     var p = m.processes[1];
21
22     var rasterTask = p.threads[1].sliceGroup.slices.filter(function(slice) {
23       return slice.title == 'TileManager::RunRasterTask';
24     })[0];
25
26     var view = new cc.RasterTaskSliceView();
27     view.style.minHeight = '500px';
28     view.slice = rasterTask;
29     this.addHTMLOutput(view);
30   });
31 });
32 </script>