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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/value/ui/numeric_stats_span_test.html
diff --git a/tracing/tracing/value/ui/numeric_stats_span_test.html b/tracing/tracing/value/ui/numeric_stats_span_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..b61dde58fdcfe7f6ffccb080ae308ce2004afbcb
--- /dev/null
+++ b/tracing/tracing/value/ui/numeric_stats_span_test.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<!--
+Copyright 2016 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="/tracing/value/ui/numeric_stats_span.html">
+
+<script>
+'use strict';
+
+tr.b.unittest.testSuite(function() {
+ var TEST_NUMERIC_BUILDER = tr.v.NumericBuilder.createLinear(
+ tr.v.Unit.byName.timeDurationInMs, tr.b.Range.fromExplicitRange(0, 1000),
+ 20);
+
+ test('instantiate', function() {
+ var span = document.createElement('tr-v-ui-numeric-stats-span');
+
+ var numeric = TEST_NUMERIC_BUILDER.build();
+ for (var i = 0; i < 1e2; ++i) {
+ numeric.add(Math.random() * 1000);
+ }
+
+ numeric.add('foo');
+ numeric.customizeSummaryOptions({nans: true});
+
+ span.numeric = numeric;
+ this.addHTMLOutput(span);
+ });
+});
+</script>
« no previous file with comments | « tracing/tracing/value/ui/numeric_stats_span.html ('k') | tracing/tracing/value/ui/related_event_set_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698