blob: c7c0f56cc391b45da5590b293e0c73fdd946a0bd [file] [log] [blame]
<!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';
tr.b.unittest.testSuite(function() {
test('subViewThrowsNotImplementedErrors', function() {
var subView = document.createElement('tr-c-a-sub-view');
assert.throw(function() {
subView.selection = new tr.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>