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

Side by Side Diff: tracing/tracing/value/ui/histogram_span_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: Merge polymer10-migration int polymer10-merge 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 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/numeric.html">
8 <link rel="import" href="/tracing/value/ui/histogram_span.html"> 9 <link rel="import" href="/tracing/value/ui/histogram_span.html">
9 <link rel="import" href="/tracing/value/unit.html"> 10 <link rel="import" href="/tracing/value/unit.html">
10 11
11 <script> 12 <script>
12 'use strict'; 13 'use strict';
13 14
14 tr.b.unittest.testSuite(function() { 15 tr.b.unittest.testSuite(function() {
15 var DURATION_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear( 16 var DURATION_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
16 tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000), 17 tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000),
17 10); 18 10);
(...skipping 28 matching lines...) Expand all
46 47
47 var span = document.createElement('tr-v-ui-histogram-span'); 48 var span = document.createElement('tr-v-ui-histogram-span');
48 span.histogram = h; 49 span.histogram = h;
49 this.addHTMLOutput(span); 50 this.addHTMLOutput(span);
50 }); 51 });
51 52
52 test('nans', function() { 53 test('nans', function() {
53 var h = DURATION_NUMERIC_BUILDER.build(); 54 var h = DURATION_NUMERIC_BUILDER.build();
54 h.add(undefined, 'b'); 55 h.add(undefined, 'b');
55 h.add(NaN, 'c'); 56 h.add(NaN, 'c');
57 h.customizeSummaryOptions({nans: true});
56 58
57 var span = document.createElement('tr-v-ui-histogram-span'); 59 var span = document.createElement('tr-v-ui-histogram-span');
58 span.histogram = h; 60 span.histogram = h;
59 this.addHTMLOutput(span); 61 this.addHTMLOutput(span);
60 }); 62 });
61 63
62 }); 64 });
63 </script> 65 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/value/ui/histogram_span.html ('k') | tracing/tracing/value/ui/iteration_info_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698