Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: perf_insights/perf_insights/mappers/weather_report_map_function_test.html

Issue 1772833002: Remove SystemHealthMetric (fka RAILScore) (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: fix pi test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: perf_insights/perf_insights/mappers/weather_report_map_function_test.html
diff --git a/perf_insights/perf_insights/mappers/weather_report_map_function_test.html b/perf_insights/perf_insights/mappers/weather_report_map_function_test.html
deleted file mode 100644
index b12be35f0b32babc72dfd6ba320804b5dc5396ce..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/mappers/weather_report_map_function_test.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!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="/perf_insights/mappers/weather_report_map_function.html">
-<link rel="import" href="/perf_insights/mre/mre_result.html">
-<link rel="import" href="/tracing/core/test_utils.html">
-<link rel="import" href="/tracing/model/user_model/idle_expectation.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- var test_utils = tr.c.TestUtils;
- var ThreadSlice = tr.model.ThreadSlice;
-
- test('basicModelTest', function() {
- var m = test_utils.newModel(function(m) {
- var p1 = m.getOrCreateProcess(1);
- var t2 = p1.getOrCreateThread(2);
- t2.sliceGroup.pushSlice(test_utils.newSliceEx({
- name: 'some_slice',
- start: 0, duration: 10
- }));
- });
-
- var result = new pi.mre.MreResult();
- pi.m.weatherReportMapFunction(result, m);
-
- assert.equal(tr.b.dictionaryLength(result.pairs), 1);
- assert.property(result.pairs, 'wr');
- });
-
- test('basicWrTest', function() {
- var m = test_utils.newModel(function(m) {
- var p1 = m.getOrCreateProcess(1);
- var t2 = p1.getOrCreateThread(2);
- var t2_s1 = t2.sliceGroup.pushSlice(test_utils.newSliceEx({
- type: ThreadSlice,
- name: 'some_slice',
- start: 0, end: 10
- }));
- var t2_s2 = t2.sliceGroup.pushSlice(test_utils.newSliceEx({
- type: ThreadSlice,
- name: 'some_slice',
- start: 20, end: 30
- }));
-
- var idleIr = new tr.model.um.IdleExpectation(m, 0, 10);
- m.userModel.expectations.push(idleIr);
- idleIr.associatedEvents.push(t2_s2);
- });
-
- var wr = pi.m.getWeatherReportFromModel(m);
- assert.isDefined(wr.sliceCosts);
- assert.equal(wr.sliceCosts.length, 2);
- });
-});
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698