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

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

Issue 2334233003: Merge NumericValue into Histogram (Closed)
Patch Set: fix rail_power_metric Created 4 years, 3 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/composition_span.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 5c7c511c090d9238f27f2bc00072b42417424424..e6d9a637f7ae396470059b4633d10f5f293cfda3 100644
--- a/tracing/tracing/value/ui/composition_span_test.html
+++ b/tracing/tracing/value/ui/composition_span_test.html
@@ -10,22 +10,21 @@ found in the LICENSE file.
<link rel="import" href="/tracing/value/histogram.html">
<link rel="import" href="/tracing/value/ui/composition_span.html">
<link rel="import" href="/tracing/value/ui/diagnostic_span.html">
-<link rel="import" href="/tracing/value/value.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('instantiate_Composition', function() {
- var foo = new tr.v.Histogram(tr.b.Unit.byName.timeDurationInMs);
- var bar = new tr.v.Histogram(tr.b.Unit.byName.timeDurationInMs);
+ var foo = new tr.v.Histogram('foo', tr.b.Unit.byName.timeDurationInMs);
+ var bar = new tr.v.Histogram('bar', tr.b.Unit.byName.timeDurationInMs);
for (var i = 0; i < 1e2; ++i) {
foo.addSample(Math.random());
bar.addSample(Math.random());
}
var composition = new tr.v.d.Composition();
- composition.add(new tr.v.NumericValue('foo', foo));
- composition.add(new tr.v.NumericValue('bar', bar));
+ composition.add(foo);
+ composition.add(bar);
var span = tr.v.ui.createDiagnosticSpan(composition);
assert.strictEqual('TR-V-UI-COMPOSITION-SPAN', span.tagName);
this.addHTMLOutput(span);
« no previous file with comments | « tracing/tracing/value/ui/composition_span.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