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

Unified Diff: perf_insights/perf_insights/mappers/scheduling/map_rendering_cost_test.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/scheduling/map_rendering_cost_test.html
diff --git a/perf_insights/perf_insights/mappers/scheduling/map_rendering_cost_test.html b/perf_insights/perf_insights/mappers/scheduling/map_rendering_cost_test.html
deleted file mode 100644
index fb7f796e704c6f07f2c362bc642de28e71d26d74..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/mappers/scheduling/map_rendering_cost_test.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 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="/perf_insights/mappers/scheduling/map_rendering_cost.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/extras/chrome/chrome_test_utils.html">
-
-<script>
-'use strict';
-
-tr.b.unittest.testSuite(function() {
- var TestUtils = tr.c.TestUtils;
- var ThreadSlice = tr.model.ThreadSlice;
-
- test('mapperTest', function() {
- var m = tr.e.chrome.ChromeTestUtils.newChromeModel(function(m) {
- tr.e.chrome.ChromeTestUtils.addLoadingEvent(m, {start: 0, end: 10});
-
- var mainThread = m.rendererMain;
-
- mainThread.sliceGroup.pushSlice(TestUtils.newSliceEx({
- type: ThreadSlice,
- start: 4,
- duration: 4,
- title: 'TaskQueueManager::RunTask'
- }));
-
- mainThread.sliceGroup.pushSlice(TestUtils.newSliceEx({
- type: ThreadSlice,
- start: 5,
- duration: 2,
- title: 'ThreadProxy::BeginMainFrame'
- }));
-
- // Two slices that only partially overlaps the loading phase. Both
- // should be ignored.
- mainThread.sliceGroup.pushSlice(TestUtils.newSliceEx({
- type: ThreadSlice,
- start: -5,
- duration: 10,
- title: 'ThreadProxy::BeginMainFrame'
- }));
-
- mainThread.sliceGroup.pushSlice(TestUtils.newSliceEx({
- type: ThreadSlice,
- start: 8,
- duration: 10,
- title: 'ThreadProxy::BeginMainFrame'
- }));
- });
-
- var result = new pi.mre.MreResult();
- pie.mapRenderingCostForTest(result, m);
-
- assert.equal(tr.b.dictionaryLength(result.pairs), 1);
-
- var renderingCost = result.pairs.renderingCost;
- assert.deepEqual(renderingCost.loadingDuration, [10]);
- assert.deepEqual(renderingCost.loadingTotalCost, [4]);
- assert.deepEqual(renderingCost.loadingBeginMainFrameCost, [2]);
- assert.deepEqual(renderingCost.loadingBeginMainFrameRelativeCost, [.5]);
- });
-});
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698