summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2017-01-18 18:30:15 +0100
committerMichal Klocek <michal.klocek@qt.io>2017-01-19 12:03:01 +0000
commit11e5c2ddbda46865261266214ed1345679fef0d2 (patch)
tree679d19753f7c85614a0c163a42b806b54bc970de /chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html
parent891fb3a82f7257b70a06527fef20be5e48ccd71a (diff)
Revert "Add mus and catapult project files"
This reverts commit f0e73b6da23ab32db1edfbc912bc3ce989bf9a06. Change-Id: I0ee65ed5f04597d7538ef59e3699867871524fe1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html')
-rw-r--r--chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html57
1 files changed, 0 insertions, 57 deletions
diff --git a/chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html b/chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html
deleted file mode 100644
index 3fadbcb0844..00000000000
--- a/chromium/third_party/catapult/tracing/tracing/model/async_slice_test.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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/core/test_utils.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- var AsyncSlice = tr.model.AsyncSlice;
- var Process = tr.model.Process;
- var Thread = tr.model.Thread;
- var newAsyncSlice = tr.c.TestUtils.newAsyncSlice;
- var newAsyncSliceEx = tr.c.TestUtils.newAsyncSliceEx;
- var newFakeThread = tr.c.TestUtils.newFakeThread;
-
- test('stableId', function() {
- var thread = newFakeThread();
- var group = thread.asyncSliceGroup;
-
- var sA = group.push(newAsyncSliceEx(
- { title: 'sA', start: 0.0, duration: 10.0 }));
- var sB = group.push(newAsyncSliceEx(
- { title: 'sB', start: 10.0, duration: 20.0 }));
- var sC = group.push(newAsyncSliceEx(
- { title: 'sC', start: 20.0, duration: 30.0 }));
-
- assert.equal(group.stableId + '.0', sA.stableId);
- assert.equal(group.stableId + '.1', sB.stableId);
- assert.equal(group.stableId + '.2', sC.stableId);
- });
-
- test('setParentContainerForSubSlices', function() {
- var model = new tr.Model();
- var p1 = new Process(model, 1);
- var t1 = new Thread(p1, 1);
- var asyncSlice = newAsyncSlice(0, 10, t1, t1);
- var subSlice1 = newAsyncSlice(1, 5, t1, t1);
- var subSlice2 = newAsyncSlice(6, 9, t1, t1);
- var subSlice3 = newAsyncSlice(2, 3, t1, t1);
- subSlice1.subSlices.push(subSlice3);
- asyncSlice.subSlices.push(subSlice1);
- asyncSlice.subSlices.push(subSlice2);
- asyncSlice.parentContainer = t1;
- assert.equal(asyncSlice.subSlices.length, 2);
- assert.equal(subSlice1.subSlices.length, 1);
- assert.deepEqual(asyncSlice.parentContainer, t1);
- assert.deepEqual(subSlice1.parentContainer, t1);
- assert.deepEqual(subSlice2.parentContainer, t1);
- assert.deepEqual(subSlice3.parentContainer, t1);
- });
-});
-</script>