| <!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/generic.html"> |
| <link rel="import" href="/tracing/value/ui/diagnostic_span.html"> |
| |
| <script> |
| 'use strict'; |
| |
| tr.b.unittest.testSuite(function() { |
| test('instantiate', function() { |
| var diagnostic = new tr.v.d.Generic({foo: 'bar', baz: [42]}); |
| var span = tr.v.ui.createDiagnosticSpan(diagnostic); |
| assert.strictEqual('TR-V-UI-GENERIC-DIAGNOSTIC-SPAN', span.tagName); |
| this.addHTMLOutput(span); |
| }); |
| }); |
| </script> |