Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: tracing/tracing/value/histogram_parameter_collector_test.html

Issue 2747453003: Refactor histogram-set-view to an MVC pattern. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « tracing/tracing/value/histogram_parameter_collector.html ('k') | tracing/tracing/value/histogram_set_hierarchy.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698