blob: 05364e4c6c4c7a08d5dbf0d5b97f8ec78d8fb7fd [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/related_value_set.html">
<link rel="import" href="/tracing/value/histogram.html">
<link rel="import" href="/tracing/value/ui/diagnostic_span.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('instantiate_RelatedValueSet', function() {
var aValue = new tr.v.Histogram('a', tr.b.Unit.byName.unitlessNumber);
var bValue = new tr.v.Histogram('b', tr.b.Unit.byName.unitlessNumber);
var diagnostic = new tr.v.d.RelatedValueSet([aValue, bValue]);
var span = tr.v.ui.createDiagnosticSpan(diagnostic);
assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName);
this.addHTMLOutput(span);
});
});
</script>