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

Unified Diff: tracing/tracing/value/ui/related_histogram_map_span_test.html

Issue 3009553002: Refactor Histogram relationship diagnostics. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/value/ui/related_histogram_map_span_test.html
diff --git a/tracing/tracing/value/ui/related_histogram_map_span_test.html b/tracing/tracing/value/ui/related_histogram_map_span_test.html
deleted file mode 100644
index 830e512c806460366dcfd1321f4b0ef58960f1a8..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/ui/related_histogram_map_span_test.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!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/diagnostics/related_histogram_map.html">
-<link rel="import" href="/tracing/value/histogram.html">
-<link rel="import" href="/tracing/value/ui/diagnostic_span.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- test('instantiate_RelatedHistogramMap', function() {
- const aHist = new tr.v.Histogram('a', tr.b.Unit.byName.timeDurationInMs);
- const bHist = new tr.v.Histogram('b', tr.b.Unit.byName.timeDurationInMs);
- aHist.addSample(1);
- bHist.addSample(2);
- const diagnostic = new tr.v.d.RelatedHistogramMap();
- diagnostic.set('foo', aHist);
- diagnostic.set('bar', bHist);
- const span = tr.v.ui.createDiagnosticSpan(diagnostic);
- assert.strictEqual('TR-V-UI-RELATED-HISTOGRAM-MAP-SPAN', span.tagName);
- this.addHTMLOutput(span);
- assert.isDefined(
- tr.ui.b.findDeepElementWithTextContent(span, /Select All/));
- assert.isDefined(tr.ui.b.findDeepElementWithTextContent(span, /foo/));
- assert.isDefined(tr.ui.b.findDeepElementWithTextContent(span, /bar/));
- assert.isDefined(tr.ui.b.findDeepElementWithTextContent(span, /1\.000 ms/));
- assert.isDefined(tr.ui.b.findDeepElementWithTextContent(span, /2\.000 ms/));
- });
-});
-</script>
« no previous file with comments | « tracing/tracing/value/ui/related_histogram_map_span.html ('k') | tracing/tracing/value/ui/related_name_map_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698