Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / trace_viewer / cc / tile_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/tile.html">
9 <link rel="import" href="/cc/tile_view.html">
10 <link rel="import" href="/tracing/importer/trace_event_importer.html">
11 <link rel="import" href="/tracing/trace_model.html">
12
13 <script src="/cc/layer_tree_host_impl_test_data.js"></script>
14
15 <script>
16
17 'use strict';
18
19 tv.unittest.testSuite(function() {
20   test('basic', function() {
21     var m = new tracing.TraceModel(g_catLTHIEvents);
22     var p = tv.dictionaryValues(m.processes)[0];
23     var instance = p.objects.getAllInstancesNamed('cc::Tile')[0];
24     var snapshot = instance.snapshots[0];
25
26     assertTrue(snapshot instanceof cc.TileSnapshot);
27   });
28 });
29 </script>