3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <link rel="import" href="/tracing/analysis/analysis_sub_view.html">
9 <link rel="import" href="/tracing/selection.html">
14 tvcm.unittest.testSuite(function() {
15 test('subViewThrowsNotImplementedErrors', function() {
16 var subView = new TracingAnalysisSubView();
18 var errorCaught = false;
20 subView.selection = new tracing.Selection();
22 if (error.message === 'Not implemented!')
25 assertTrue(errorCaught);
29 var viewSelection = subView.selection;
31 if (error.message === 'Not implemented!')
34 assertTrue(errorCaught);
36 subView.tabLabel = 'Tab Label';
37 assertEquals('Tab Label', subView.getAttribute('tab-label'));
38 assertEquals('Tab Label', subView.tabLabel);
40 subView.tabLabel = 'New Label';
41 assertEquals('New Label', subView.getAttribute('tab-label'));
42 assertEquals('New Label', subView.tabLabel);