blob: 30c9836032203d8ed286af21129b6424bf111767 [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_view.html">
<link rel="import" href="/core/test_utils.html">
<link rel="import" href="/core/selection.html">
<link rel="import" href="/core/trace_model/trace_model.html">
<script>
'use strict';
tv.b.unittest.testSuite(function() {
var Model = tv.c.TraceModel;
var Selection = tv.c.Selection;
var trace_model = tv.c.trace_model;
test('analyzeSelectionWithSingleEvent', function() {
var model = new Model();
var fe = new trace_model.FlowEvent('cat', 1234, 'title', 7, 10, {});
model.flowEvents.push(fe);
var selection = new Selection();
selection.push(fe);
assert.equal(selection.length, 1);
var subView = document.createElement('tv-c-single-flow-event-sub-view');
subView.selection = selection;
this.addHTMLOutput(subView);
});
});
</script>