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

Unified Diff: tracing/tracing/value/ui/composition_span_test.html

Issue 2293533002: Refactor NumericBuilder to HistogramBinBoundaries. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « tracing/tracing/value/numeric.html ('k') | tracing/tracing/value/ui/histogram_span_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/composition_span_test.html
diff --git a/tracing/tracing/value/ui/composition_span_test.html b/tracing/tracing/value/ui/composition_span_test.html
index fe82406bbd29b22a9a39d3ad11072decbf5c2bf6..0bb04238498572f148b07dcf2b97ded87cb897a0 100644
--- a/tracing/tracing/value/ui/composition_span_test.html
+++ b/tracing/tracing/value/ui/composition_span_test.html
@@ -15,12 +15,8 @@ found in the LICENSE file.
'use strict';
tr.b.unittest.testSuite(function() {
- var TEST_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
- tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1),
- 20);
-
test('instantiate_Composition', function() {
- var numeric = TEST_NUMERIC_BUILDER.build();
+ var numeric = new tr.v.Histogram(tr.v.Unit.byName.timeDurationInMs);
var scalar = new tr.v.ScalarNumeric(tr.v.Unit.byName.timeDurationInMs, 42);
for (var i = 0; i < 1e2; ++i) {
numeric.add(Math.random());
« no previous file with comments | « tracing/tracing/value/numeric.html ('k') | tracing/tracing/value/ui/histogram_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698