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

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

Issue 2283213002: Rename Histogram.add() to addSample(). (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
Index: tracing/tracing/value/ui/value_set_table_test.html
diff --git a/tracing/tracing/value/ui/value_set_table_test.html b/tracing/tracing/value/ui/value_set_table_test.html
index 7310ed849dd43073cbf6dd666d2cf4ee5d836a6a..e2c48aa78654b5f786d57fc3689e116f3ddaef30 100644
--- a/tracing/tracing/value/ui/value_set_table_test.html
+++ b/tracing/tracing/value/ui/value_set_table_test.html
@@ -30,7 +30,7 @@ tr.b.unittest.testSuite(function() {
var numeric = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric.add(Math.random() * 1000);
+ numeric.addSample(Math.random() * 1000);
values.addValue(new tr.v.NumericValue('foo', numeric));
table.values = values;
this.addHTMLOutput(table);
@@ -49,7 +49,7 @@ tr.b.unittest.testSuite(function() {
var numeric0a = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric0a.add(Math.random() * 1000);
+ numeric0a.addSample(Math.random() * 1000);
var fooA = new tr.v.NumericValue('foo', numeric0a, {
description: 'they should have sent a poet'
});
@@ -62,7 +62,7 @@ tr.b.unittest.testSuite(function() {
var numeric1a = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric1a.add(Math.random() * 1000);
+ numeric1a.addSample(Math.random() * 1000);
var barA = new tr.v.NumericValue('bar', numeric1a, {
description: 'indescribable'
});
@@ -75,7 +75,7 @@ tr.b.unittest.testSuite(function() {
var numeric0b = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric0b.add(Math.random() * 1000);
+ numeric0b.addSample(Math.random() * 1000);
var fooB = new tr.v.NumericValue('foo', numeric0b, {
description: 'they should have sent a poet'
});
@@ -88,7 +88,7 @@ tr.b.unittest.testSuite(function() {
var numeric1b = new tr.v.Histogram(
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter, TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric1b.add(Math.random() * 1000);
+ numeric1b.addSample(Math.random() * 1000);
var barB = new tr.v.NumericValue('bar', numeric1b, {
description: 'indescribable'
});
@@ -134,7 +134,7 @@ tr.b.unittest.testSuite(function() {
tr.v.Unit.byName.timeDurationInMs_smallerIsBetter,
TEST_BOUNDARIES);
for (var i = 0; i < 100; ++i)
- numeric.add(Math.random() * 1000);
+ numeric.addSample(Math.random() * 1000);
var value = new tr.v.NumericValue('foo', numeric);
values.addValue(value);
« no previous file with comments | « tracing/tracing/value/ui/numeric_stats_span_test.html ('k') | tracing/tracing/value/ui/value_set_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698