Home | History | Annotate | Download | only in analysis
      1 <!DOCTYPE html>
      2 <!--
      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.
      6 -->
      7 
      8 <link rel="import" href="/tracing/model/event_set.html">
      9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
     10 
     11 <script>
     12 'use strict';
     13 
     14 tr.b.unittest.testSuite(function() {
     15   test('subViewThrowsNotImplementedErrors', function() {
     16     var subView = document.createElement('tr-ui-a-sub-view');
     17 
     18     assert.throw(function() {
     19       subView.selection = new tr.model.EventSet();
     20     }, 'Not implemented!');
     21 
     22     assert.throw(function() {
     23       var viewSelection = subView.selection;
     24     }, 'Not implemented!');
     25 
     26     subView.tabLabel = 'Tab Label';
     27     assert.equal(subView.getAttribute('tab-label'), 'Tab Label');
     28     assert.equal(subView.tabLabel, 'Tab Label');
     29 
     30     subView.tabLabel = 'New Label';
     31     assert.equal(subView.getAttribute('tab-label'), 'New Label');
     32     assert.equal(subView.tabLabel, 'New Label');
     33   });
     34 });
     35 </script>
     36