| <!DOCTYPE html> |
| <!-- |
| Copyright (c) 2013 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="/core/analysis/analysis_sub_view.html"> |
| <link rel="import" href="/core/selection.html"> |
| |
| <script> |
| 'use strict'; |
| |
| tv.b.unittest.testSuite(function() { |
| test('subViewThrowsNotImplementedErrors', function() { |
| var subView = new TracingAnalysisSubView(); |
| |
| assert.throw(function() { |
| subView.selection = new tv.c.Selection(); |
| }, 'Not implemented!'); |
| |
| assert.throw(function() { |
| var viewSelection = subView.selection; |
| }, 'Not implemented!'); |
| |
| subView.tabLabel = 'Tab Label'; |
| assert.equal(subView.getAttribute('tab-label'), 'Tab Label'); |
| assert.equal(subView.tabLabel, 'Tab Label'); |
| |
| subView.tabLabel = 'New Label'; |
| assert.equal(subView.getAttribute('tab-label'), 'New Label'); |
| assert.equal(subView.tabLabel, 'New Label'); |
| }); |
| }); |
| </script> |