| Index: tracing/tracing/value/histogram_parameter_collector_test.html
|
| diff --git a/tracing/tracing/value/histogram_parameter_collector_test.html b/tracing/tracing/value/histogram_parameter_collector_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..dc499492ef06c5c21ffa3195c5664e5fedea196b
|
| --- /dev/null
|
| +++ b/tracing/tracing/value/histogram_parameter_collector_test.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<!--
|
| +Copyright 2017 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_parameter_collector.html">
|
| +
|
| +<script>
|
| +'use strict';
|
| +tr.b.unittest.testSuite(function() {
|
| + test('empty', function() {
|
| + const collector = new tr.v.HistogramParameterCollector();
|
| + collector.process([
|
| + ]);
|
| + assert.strictEqual('avg', tr.b.getOnlyElement(collector.statisticNames));
|
| + assert.strictEqual('name',
|
| + tr.b.getOnlyElement(collector.possibleGroupings).key);
|
| + assert.lengthOf(collector.labels, 0);
|
| + });
|
| +
|
| + // TODO(benjhayden): More tests.
|
| +});
|
| +</script>
|
|
|