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

Unified Diff: tracing/tracing/value/ui/value_set_view_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/ui/value_set_table_test.html ('k') | tracing/tracing/value/value_set_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/value_set_view_test.html
diff --git a/tracing/tracing/value/ui/value_set_view_test.html b/tracing/tracing/value/ui/value_set_view_test.html
index 010a1d5f53c26a32aa110db290f07870c5efd9cc..89f985d3ddba96ce36b8dd0acedf5025ef745e25 100644
--- a/tracing/tracing/value/ui/value_set_view_test.html
+++ b/tracing/tracing/value/ui/value_set_view_test.html
@@ -14,17 +14,13 @@ 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, 1000),
- 20);
-
test('instantiate0', function() {
var view = document.createElement('tr-v-ui-value-set-view');
var values = new tr.v.ValueSet();
- var numeric = TEST_NUMERIC_BUILDER.build();
+ var numeric = new tr.v.Histogram(tr.v.Unit.byName.normalizedPercentage);
for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random() * TEST_NUMERIC_BUILDER.maxBinBoundary);
+ numeric.add(Math.random());
}
var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
values.addValue(foo);
« no previous file with comments | « tracing/tracing/value/ui/value_set_table_test.html ('k') | tracing/tracing/value/value_set_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698