<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/extras/cc/layer_tree_host_impl.html">
<link rel="import" href="/extras/cc/layer_tree_host_impl_view.html">
<link rel="import" href="/extras/importer/trace_event_importer.html">
<link rel="import" href="/core/trace_model/trace_model.html">

<script src="/extras/cc/layer_tree_host_impl_test_data.js"></script>

<script>
'use strict';

tv.unittest.testSuite(function() {
  test('instantiate', function() {
    var m = new tracing.TraceModel(g_catLTHIEvents);
    var p = tv.dictionaryValues(m.processes)[0];

    var instance = p.objects.getAllInstancesNamed('cc::LayerTreeHostImpl')[0];
    var snapshot = instance.snapshots[0];

    var view = new cc.LayerTreeHostImplSnapshotView();
    view.style.width = '900px';
    view.style.height = '400px';
    view.objectSnapshot = snapshot;

    this.addHTMLOutput(view);
  });
});
</script>

<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="import" href="/extras/cc/layer_tree_host_impl.html">
<link rel="import" href="/extras/cc/layer_tree_host_impl_view.html">
<link rel="import" href="/extras/importer/trace_event_importer.html">
<link rel="import" href="/core/trace_model/trace_model.html">
<link rel="import" href="/extras/cc/raster_task.html">

<script src="/extras/cc/layer_tree_host_impl_test_data.js"></script>

<script>
'use strict';

tv.unittest.testSuite(function() {
  test('instantiate', function() {
    var m = new tracing.TraceModel(g_catLTHIEvents);
    var p = tv.dictionaryValues(m.processes)[0];

    var instance = p.objects.getAllInstancesNamed('cc::LayerTreeHostImpl')[0];
    var snapshot = instance.snapshots[0];

    var view = new cc.LayerTreeHostImplSnapshotView();
    view.style.width = '900px';
    view.style.height = '400px';
    view.objectSnapshot = snapshot;

    this.addHTMLOutput(view);
  });
});
</script>

Fix lthiv instantitate test so it runs
Fix lthiv instantitate test so it runs
