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

Side by Side Diff: tracing/tracing/value/ui/numeric_stats_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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
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
5 found in the LICENSE file.
6 -->
7
8 <link rel="import" href="/tracing/value/ui/numeric_stats_span.html">
9
10 <script>
11 'use strict';
12
13 tr.b.unittest.testSuite(function() {
14 var TEST_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
15 tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000),
16 20);
17
18 test('instantiate', function() {
19 var span = document.createElement('tr-v-ui-numeric-stats-span');
20
21 var numeric = TEST_NUMERIC_BUILDER.build();
22 for (var i = 0; i < 1e2; ++i) {
23 numeric.add(Math.random() * 1000);
24 }
25
26 numeric.add('foo');
27 numeric.customizeSummaryOptions({nans: true});
28
29 span.numeric = numeric;
30 this.addHTMLOutput(span);
31 });
32 });
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698