blob: a1c0301a0184fbb12cfd402c5c4e02f2b3a08bf3 [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/histogram.html">
<link rel="import" href="/tracing/value/ui/value_set_table.html">
<link rel="import" href="/tracing/value/ui/value_set_view.html">
<link rel="import" href="/tracing/value/value_set.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('instantiate0', function() {
var view = document.createElement('tr-v-ui-value-set-view');
var values = new tr.v.ValueSet();
var hist = new tr.v.Histogram('foo', tr.b.Unit.byName.normalizedPercentage);
for (var i = 0; i < 1e2; ++i)
hist.addSample(Math.random());
values.addHistogram(hist);
this.addHTMLOutput(view);
view.values = values;
});
});
</script>