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

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

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Sync to head Created 4 years, 5 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/value_set_test.html
diff --git a/tracing/tracing/value/value_set_test.html b/tracing/tracing/value/value_set_test.html
index a1b48e5e8649dbc945b977d3c6e2afd47ee58e83..0273d38b020a1be810c04d60e5321cadb74401cb 100644
--- a/tracing/tracing/value/value_set_test.html
+++ b/tracing/tracing/value/value_set_test.html
@@ -14,6 +14,26 @@ found in the LICENSE file.
'use strict';
tr.b.unittest.testSuite(function() {
+ test('addValuesFromDicts', function() {
+ var n = tr.v.NumericBuilder.createLinear(
+ tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 100),
+ 100).build();
+ n.add(10);
+ n.customizeSummaryOptions({
+ count: true,
+ min: false,
+ max: false,
+ sum: false,
+ avg: false,
+ std: false
+ });
+
+ var values = new tr.v.ValueSet([new tr.v.NumericValue('foo', n)]);
+ var values2 = new tr.v.ValueSet();
+ values2.addValuesFromDicts(values.valueDicts);
+ assert.lengthOf(values2.getValuesWithName('foo_count'), 1);
+ });
+
test('computeSummaryValuesForNumericValue', function() {
var n = tr.v.NumericBuilder.createLinear(
tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 100),

Powered by Google App Engine
This is Rietveld 408576698