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.
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">
13 <script src="/cc/layer_tree_host_impl_test_data.js"></script>
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];
26 assertTrue(snapshot instanceof cc.TileSnapshot);