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

Side by Side Diff: tracing/tracing/value/ui/composition_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
(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/diagnostics/composition.html">
9 <link rel="import" href="/tracing/value/ui/composition_span.html">
10 <link rel="import" href="/tracing/value/ui/diagnostic_span.html">
11 <link rel="import" href="/tracing/value/value.html">
12
13 <script>
14 'use strict';
15
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, 1),
19 20);
20
21 test('instantiate_Composition', function() {
22 var numeric = TEST_NUMERIC_BUILDER.build();
23 var scalar = new tr.v.ScalarNumeric(tr.v.Unit.byName.timeDurationInMs, 42);
24 for (var i = 0; i < 1e2; ++i) {
25 numeric.add(Math.random());
26 }
27 var composition = new tr.v.d.Composition();
28 composition.add(new tr.v.NumericValue('numeric', numeric));
29 composition.add(new tr.v.NumericValue('scalar', scalar));
30 var span = tr.v.ui.createDiagnosticSpan(composition);
31 assert.strictEqual('TR-V-UI-COMPOSITION-SPAN', span.tagName);
32 this.addHTMLOutput(span);
33 });
34 });
35 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/value/ui/composition_span.html ('k') | tracing/tracing/value/ui/diagnostic_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698