OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/value/diagnostics/composition.html"> | |
9 <link rel="import" href="/tracing/value/diagnostics/related_value_set.html"> | 8 <link rel="import" href="/tracing/value/diagnostics/related_value_set.html"> |
10 <link rel="import" href="/tracing/value/ui/diagnostic_span.html"> | 9 <link rel="import" href="/tracing/value/ui/diagnostic_span.html"> |
11 <link rel="import" href="/tracing/value/value.html"> | 10 <link rel="import" href="/tracing/value/value.html"> |
12 | 11 |
13 <script> | 12 <script> |
14 'use strict'; | 13 'use strict'; |
15 | 14 |
16 tr.b.unittest.testSuite(function() { | 15 tr.b.unittest.testSuite(function() { |
17 test('instantiate_RelatedValueSet', function() { | 16 test('instantiate_RelatedValueSet', function() { |
18 var aValue = new tr.v.SkipValue('a'); | 17 var aValue = new tr.v.SkipValue('a'); |
19 var bValue = new tr.v.SkipValue('b'); | 18 var bValue = new tr.v.SkipValue('b'); |
20 var diagnostic = new tr.v.d.RelatedValueSet([aValue, bValue]); | 19 var diagnostic = new tr.v.d.RelatedValueSet([aValue, bValue]); |
21 var span = tr.v.ui.createDiagnosticSpan(diagnostic); | 20 var span = tr.v.ui.createDiagnosticSpan(diagnostic); |
22 assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName); | 21 assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName); |
23 this.addHTMLOutput(span); | 22 this.addHTMLOutput(span); |
24 }); | 23 }); |
25 | |
26 test('instantiate_Composition', function() { | |
27 var aValue = new tr.v.SkipValue('a'); | |
28 var bValue = new tr.v.SkipValue('b'); | |
29 var diagnostic = new tr.v.d.Composition([aValue, bValue]); | |
30 var span = tr.v.ui.createDiagnosticSpan(diagnostic); | |
31 assert.strictEqual('TR-V-UI-RELATED-VALUE-SET-SPAN', span.tagName); | |
32 this.addHTMLOutput(span); | |
33 }); | |
34 }); | 24 }); |
35 </script> | 25 </script> |
OLD | NEW |