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

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

Issue 2999663002: Revert of Revision Info into GenericSet (Closed)
Patch Set: Created 3 years, 4 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/revision_info_span.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/revision_info_span_test.html
diff --git a/tracing/tracing/value/ui/revision_info_span_test.html b/tracing/tracing/value/ui/revision_info_span_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..57048973e1e8393cfdb793fa55fd3e5842ca4198
--- /dev/null
+++ b/tracing/tracing/value/ui/revision_info_span_test.html
@@ -0,0 +1,43 @@
+<!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/revision_info.html">
+<link rel="import" href="/tracing/value/ui/diagnostic_span.html">
+
+<script>
+'use strict';
+
+tr.b.unittest.testSuite(function() {
+ test('instantiateSingles', function() {
+ const revInfo = new tr.v.d.RevisionInfo({
+ chromium: ['b10563e'],
+ v8: ['0a12a6'],
+ catapult: ['e6e086'],
+ angle: ['d7b1ab'],
+ skia: ['966bb3'],
+ webrtc: ['277b25'],
+ });
+ const span = tr.v.ui.createDiagnosticSpan(revInfo);
+ assert.strictEqual('TR-V-UI-REVISION-INFO-SPAN', span.tagName);
+ this.addHTMLOutput(span);
+ });
+
+ test('instantiateRanges', function() {
+ const revInfo = new tr.v.d.RevisionInfo({
+ chromium: ['e2ebe328', 'b10563e'],
+ v8: ['0a12a6', '921d88'],
+ catapult: ['e6e086', 'bf0f62'],
+ angle: ['d7b1ab', 'da9fb0'],
+ skia: ['966bb3', 'db402c'],
+ webrtc: ['277b25', 'f8b262'],
+ });
+ const span = tr.v.ui.createDiagnosticSpan(revInfo);
+ assert.strictEqual('TR-V-UI-REVISION-INFO-SPAN', span.tagName);
+ this.addHTMLOutput(span);
+ });
+});
+</script>
« no previous file with comments | « tracing/tracing/value/ui/revision_info_span.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698