blob: f43ca56465c300d8221aebd46bb10e1f794c9440 [file] [log] [blame]
<!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/gpu/gpu.html">
<link rel="import" href="/extras/importer/trace_event_importer.html">
<link rel="import" href="/core/trace_model/trace_model.html">
<script src="/extras/gpu/state_test_data.js"></script>
<script>
'use strict';
tv.b.unittest.testSuite(function() {
test('basic', function() {
var m = new tv.c.TraceModel(g_gpu_state_trace);
var p = tv.b.dictionaryValues(m.processes)[0];
var instance = p.objects.getAllInstancesNamed('gpu::State')[0];
var snapshot = instance.snapshots[0];
assert.instanceOf(snapshot, tv.e.gpu.StateSnapshot);
assert.typeOf(snapshot.screenshot, 'string');
instance.wasDeleted(150);
});
});
</script>