blob: 71060c95312225993388b9ca4231d0da8e838b8e [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="/core/analysis/single_object_instance_sub_view.html">
<link rel="import" href="/core/test_utils.html">
<link rel="import" href="/core/selection.html">
<link rel="import" href="/model/model.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
var ObjectInstance = tr.model.ObjectInstance;
test('analyzeSelectionWithObjectInstanceUnknownType', function() {
var i10 = new ObjectInstance({}, '0x1000', 'cat', 'someUnhandledName', 10);
var s10 = i10.addSnapshot(10, {foo: 1});
var s20 = i10.addSnapshot(20, {foo: 2});
var selection = new tr.c.Selection();
selection.push(i10);
var view = document.createElement('tr-c-a-single-object-instance-sub-view');
view.selection = selection;
this.addHTMLOutput(view);
});
});
</script>