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

Unified Diff: tracing/tracing/value/ui/related_name_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
« no previous file with comments | « tracing/tracing/value/ui/related_name_map_span.html ('k') | tracing/tracing/value/ui/scalar_span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/related_name_map_span_test.html
diff --git a/tracing/tracing/value/ui/related_name_map_span_test.html b/tracing/tracing/value/ui/related_name_map_span_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..1831521eb3f70626575772380c2020c426db856a
--- /dev/null
+++ b/tracing/tracing/value/ui/related_name_map_span_test.html
@@ -0,0 +1,26 @@
+<!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/core/test_utils.html">
+<link rel="import" href="/tracing/ui/base/deep_utils.html">
+<link rel="import" href="/tracing/value/diagnostics/related_name_map.html">
+<link rel="import" href="/tracing/value/ui/diagnostic_span.html">
+
+<script>
+'use strict';
+tr.b.unittest.testSuite(function() {
+ test('instantiate', function() {
+ const diagnostic = tr.v.d.RelatedNameMap.fromEntries([['abc', 'def']]);
+ const span = tr.v.ui.createDiagnosticSpan(diagnostic);
+ assert.strictEqual('TR-V-UI-RELATED-NAME-MAP-SPAN', span.tagName);
+ this.addHTMLOutput(span);
+ const link = tr.ui.b.findDeepElementMatching(span, 'tr-ui-a-analysis-link');
+ assert.strictEqual(link.textContent, 'abc');
+ assert.strictEqual(link.selection, ['def']);
+ });
+});
+</script>
« no previous file with comments | « tracing/tracing/value/ui/related_name_map_span.html ('k') | tracing/tracing/value/ui/scalar_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698