| Index: tracing/tracing/metrics/ui/system_health/system_health_side_panel_test.html
|
| diff --git a/tracing/tracing/metrics/ui/system_health/system_health_side_panel_test.html b/tracing/tracing/metrics/ui/system_health/system_health_side_panel_test.html
|
| deleted file mode 100644
|
| index 034f6348a1f04da240d97a52404cc179855d6ca9..0000000000000000000000000000000000000000
|
| --- a/tracing/tracing/metrics/ui/system_health/system_health_side_panel_test.html
|
| +++ /dev/null
|
| @@ -1,90 +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">
|
| -<link rel="import" href="/tracing/model/model.html">
|
| -<link rel="import" href="/tracing/model/user_model/stub_expectation.html">
|
| -<link rel="import" href="/tracing/metrics/ui/system_health/system_health_side_panel.html">
|
| -
|
| -<script>
|
| -'use strict';
|
| -
|
| -tr.b.unittest.testSuite(function() {
|
| - var TestUtils = tr.c.TestUtils;
|
| - var CompoundEventSelectionState = tr.model.CompoundEventSelectionState;
|
| -
|
| - function createModel(opt_customizeModelCallback) {
|
| - return TestUtils.newModel(function(model) {
|
| - model.p1 = model.getOrCreateProcess(1);
|
| - model.t2 = model.p1.getOrCreateThread(2);
|
| -
|
| - model.s1 = model.t2.sliceGroup.pushSlice(TestUtils.newSliceEx({
|
| - title: 'a', start: 10, end: 20
|
| - }));
|
| - model.s2 = model.t2.sliceGroup.pushSlice(TestUtils.newSliceEx({
|
| - title: 'b', start: 20, end: 30
|
| - }));
|
| - model.s3 = model.t2.sliceGroup.pushSlice(TestUtils.newSliceEx({
|
| - title: 'c', start: 30, end: 40
|
| - }));
|
| -
|
| - model.ir1 = new tr.model.um.StubExpectation({
|
| - parentModel: model,
|
| - start: 0, end: 100,
|
| - typeName: 'Idle',
|
| - normalizedEfficiency: 0.8,
|
| - normalizedUserComfort: 0.0,
|
| - associatedEvents: [
|
| - {
|
| - guid: 0,
|
| - isTopLevel: true,
|
| - cpuDuration: 1
|
| - }
|
| - ]
|
| - });
|
| - model.userModel.expectations.push(model.ir1);
|
| - model.ir1.associatedEvents.push(model.s1);
|
| -
|
| - model.ir2 = new tr.model.um.StubExpectation({
|
| - parentModel: model,
|
| - start: 100, end: 200,
|
| - typeName: 'Response',
|
| - normalizedEfficiency: 0.92935252939242,
|
| - normalizedUserComfort: 0.24128432825823582,
|
| - associatedEvents: [
|
| - {
|
| - guid: 1,
|
| - isTopLevel: true,
|
| - cpuDuration: 1
|
| - }
|
| - ]
|
| - });
|
| - model.userModel.expectations.push(model.ir2);
|
| -
|
| - model.ir2.associatedEvents.push(model.s2);
|
| - model.ir2.associatedEvents.push(model.s3);
|
| -
|
| - if (opt_customizeModelCallback)
|
| - opt_customizeModelCallback(model);
|
| - });
|
| - }
|
| -
|
| - test('instantiate', function() {
|
| - var panel = document.createElement(
|
| - 'tr-metrics-ui-sh-system-health-side-panel');
|
| - panel.model = createModel();
|
| - panel.style.height = '200px';
|
| -
|
| - var rows = panel.$.table.tableRows;
|
| - assert.equal(rows.length, 2);
|
| -
|
| - this.addHTMLOutput(panel);
|
| -
|
| - panel.rangeOfInterest = tr.b.Range.fromExplicitRange(0, 10);
|
| - });
|
| -});
|
| -</script>
|
|
|