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

Unified Diff: tracing/tracing/value/ui/value_set_view_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
« 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 89f985d3ddba96ce36b8dd0acedf5025ef745e25..1e6871eef1de99f355f15d9c54d8b2ee53574362 100644
--- a/tracing/tracing/value/ui/value_set_view_test.html
+++ b/tracing/tracing/value/ui/value_set_view_test.html
@@ -18,11 +18,10 @@ tr.b.unittest.testSuite(function() {
var view = document.createElement('tr-v-ui-value-set-view');
var values = new tr.v.ValueSet();
- var numeric = new tr.v.Histogram(tr.v.Unit.byName.normalizedPercentage);
- for (var i = 0; i < 1e2; ++i) {
- numeric.add(Math.random());
- }
- var foo = new tr.v.NumericValue('foo', numeric, {description: 'bar'});
+ var hist = new tr.v.Histogram(tr.v.Unit.byName.normalizedPercentage);
+ for (var i = 0; i < 1e2; ++i)
+ hist.addSample(Math.random());
+ var foo = new tr.v.NumericValue('foo', hist, {description: 'bar'});
values.addValue(foo);
this.addHTMLOutput(view);
« 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