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

Side by Side Diff: tracing/tracing/value/ui/related_value_set_span_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, 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/value/diagnostics/related_value_set.html"> 8 <link rel="import" href="/tracing/value/diagnostics/related_value_set.html">
9 <link rel="import" href="/tracing/value/histogram.html"> 9 <link rel="import" href="/tracing/value/histogram.html">
10 <link rel="import" href="/tracing/value/ui/diagnostic_span.html"> 10 <link rel="import" href="/tracing/value/ui/diagnostic_span.html">
11 <link rel="import" href="/tracing/value/value.html"> 11 <link rel="import" href="/tracing/value/value.html">
12 12
13 <script> 13 <script>
14 'use strict'; 14 'use strict';
15 15
16 tr.b.unittest.testSuite(function() { 16 tr.b.unittest.testSuite(function() {
17 var TEST_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
18 tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000),
19 10);
20
21 test('instantiate_RelatedValueSet', function() { 17 test('instantiate_RelatedValueSet', function() {
22 var aValue = new tr.v.NumericValue('a', TEST_NUMERIC_BUILDER.build()); 18 var aValue = new tr.v.NumericValue('a', new tr.v.Histogram(
23 var bValue = new tr.v.NumericValue('b', TEST_NUMERIC_BUILDER.build()); 19 tr.v.Unit.byName.unitlessNumber));
20 var bValue = new tr.v.NumericValue('b', new tr.v.Histogram(
21 tr.v.Unit.byName.unitlessNumber));
24 var diagnostic = new tr.v.d.RelatedValueSet([aValue, bValue]); 22 var diagnostic = new tr.v.d.RelatedValueSet([aValue, bValue]);
25 var span = tr.v.ui.createDiagnosticSpan(diagnostic); 23 var span = tr.v.ui.createDiagnosticSpan(diagnostic);
26 assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName); 24 assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName);
27 this.addHTMLOutput(span); 25 this.addHTMLOutput(span);
28 }); 26 });
29 }); 27 });
30 </script> 28 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/value/ui/related_value_map_span_test.html ('k') | tracing/tracing/value/ui/scalar_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698