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

Unified Diff: perf_insights/perf_insights/mappers/thread_grouping_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/thread_grouping_test.html
diff --git a/perf_insights/perf_insights/mappers/thread_grouping_test.html b/perf_insights/perf_insights/mappers/thread_grouping_test.html
deleted file mode 100644
index 59b3bedba21a001de74636df2d264ba5bc885ed4..0000000000000000000000000000000000000000
--- a/perf_insights/perf_insights/mappers/thread_grouping_test.html
+++ /dev/null
@@ -1,59 +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/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 test_utils = tr.c.TestUtils;
- test('basicChrome', function() {
- var m = tr.e.chrome.ChromeTestUtils.newChromeModel(function(m) {
- // Browser.
- m.browserMain.sliceGroup.pushSlice(test_utils.newSliceEx({
- name: 'BrowserSlice',
- start: 0, duration: 10
- }));
-
- // Renderer.
- m.rendererMain.sliceGroup.pushSlice(test_utils.newSliceEx({
- name: 'RendererSlice',
- start: 0, duration: 10
- }));
-
- // Something else else.
- m.otherProcess = m.getOrCreateProcess(20);
- m.otherProcessMain = m.otherProcess.getOrCreateThread(21);
- m.otherProcessMain.sliceGroup.pushSlice(test_utils.newSliceEx({
- name: 'RendererSlice',
- start: 0, duration: 10
- }));
- });
-
- var tg = new pi.m.ThreadGrouping();
- tg.autoInitUsingHelpers(m);
-
- var allSlices = new tr.model.EventSet();
- m.iterateAllEvents(function(e) {
- if (e instanceof tr.model.Slice)
- allSlices.push(e);
- });
- var groups = tg.divideEventSetIntoSubGroups(allSlices);
- var numGrouped = 0;
- tr.b.iterItems(groups, function(groupName, eventSet) {
- numGrouped += eventSet.length;
- });
- assert.equal(numGrouped, allSlices.length);
- assert.equal(groups.Browser.length, 1);
- assert.equal(groups.Renderer.length, 1);
- assert.equal(groups.Other.length, 1);
- });
-});
-</script>
« no previous file with comments | « perf_insights/perf_insights/mappers/thread_grouping.html ('k') | perf_insights/perf_insights/mappers/trace_import_cost.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698