blob: cdba33a277efb64ece092e9ac0cfb93584344254 [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/single_async_slice_sub_view.html">
<link rel="import" href="/core/test_utils.html">
<link rel="import" href="/core/selection.html">
<link rel="import" href="/model/model.html">
'use strict';
tr.b.unittest.testSuite(function() {
var newAsyncSliceEx = tr.c.test_utils.newAsyncSliceEx;
test('instantiate', function() {
var model = new tr.Model();
var p1 = model.getOrCreateProcess(1);
var t1 = p1.getOrCreateThread(1);
id: 31415,
title: 'a',
start: 10,
duration: 20,
startThread: t1,
endThread: t1
var selection = new tr.c.Selection();
var viewEl = document.createElement('tr-c-a-single-async-slice-sub-view');
viewEl.selection = selection;