Home | History | Annotate | Download | only in cc
      1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 'use strict';
      6 
      7 base.require('cc.tile');
      8 base.require('cc.tile_view');
      9 base.require('tracing.importer.trace_event_importer');
     10 base.require('tracing.trace_model');
     11 base.require('cc.layer_tree_host_impl_test_data');
     12 
     13 base.unittest.testSuite('cc.tile', function() {
     14   test('basic', function() {
     15     var m = new tracing.TraceModel(g_catLTHIEvents);
     16     var p = base.dictionaryValues(m.processes)[0];
     17     var instance = p.objects.getAllInstancesNamed('cc::Tile')[0];
     18     var snapshot = instance.snapshots[0];
     19 
     20     assertTrue(snapshot instanceof cc.TileSnapshot);
     21   });
     22 });
     23