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

Side by Side Diff: tracing/tracing/value/diagnostics/related_event_set_test.html

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: rebase Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/utils.html">
9 <link rel="import" href="/tracing/core/test_utils.html"> 9 <link rel="import" href="/tracing/core/test_utils.html">
10 <link rel="import" href="/tracing/value/histogram.html"> 10 <link rel="import" href="/tracing/value/histogram.html">
11 11
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 14
15 tr.b.unittest.testSuite(function() { 15 tr.b.unittest.testSuite(function() {
16 test('eventSet', function() { 16 test('eventSet', function() {
17 let slice = undefined; 17 let slice = undefined;
18 const model = tr.c.TestUtils.newModel(function(model) { 18 const model = tr.c.TestUtils.newModel(function(model) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 mergedHist = tr.v.Histogram.fromDict(mergedHist.asDict()); 84 mergedHist = tr.v.Histogram.fromDict(mergedHist.asDict());
85 85
86 const mergedEvents = mergedHist.diagnostics.get('events'); 86 const mergedEvents = mergedHist.diagnostics.get('events');
87 const aSlice2 = tr.b.getOnlyElement(mergedEvents.get('http://a')); 87 const aSlice2 = tr.b.getOnlyElement(mergedEvents.get('http://a'));
88 assert.strictEqual(aSlice.stableId, aSlice2.stableId); 88 assert.strictEqual(aSlice.stableId, aSlice2.stableId);
89 const bSlice2 = tr.b.getOnlyElement(mergedEvents.get('http://b')); 89 const bSlice2 = tr.b.getOnlyElement(mergedEvents.get('http://b'));
90 assert.strictEqual(bSlice.stableId, bSlice2.stableId); 90 assert.strictEqual(bSlice.stableId, bSlice2.stableId);
91 }); 91 });
92 }); 92 });
93 </script> 93 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/value/diagnostics/grouping_path.html ('k') | tracing/tracing/value/diagnostics/related_histogram_map.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698