blob: 31eafe23413ffc91669330f3d4e06f028a9f42e9 [file] [log] [blame]
<!DOCTYPE html>
<!--
Copyright 2016 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="/tracing/value/diagnostics/diagnostic_map.html">
<link rel="import" href="/tracing/value/ui/diagnostic_map_table.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('instantiate', function() {
var map0 = new tr.v.d.DiagnosticMap();
map0.add('genericA', new tr.v.d.Generic({a: 0}));
map0.add('genericB', new tr.v.d.Generic({b: 0}));
var map1 = new tr.v.d.DiagnosticMap();
map1.add('genericA', new tr.v.d.Generic({a: 1}));
map1.add('genericB', new tr.v.d.Generic({b: 1}));
var table = document.createElement('tr-v-ui-diagnostic-map-table');
table.titledDiagnosticMaps = [
{title: 'map0', diagnosticMap: map0},
{title: 'map1', diagnosticMap: map1},
];
this.addHTMLOutput(table);
});
});
</script>