| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |