blob: dfe8e30d96ce47c83faaa6f00b8467dd94c73ea2 [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="/tracing/model/event_set.html">
<link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('subViewThrowsNotImplementedErrors', function() {
var subView = document.createElement('tr-ui-a-sub-view');
assert.throw(function() {
subView.selection = new tr.model.EventSet();
}, '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>