OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 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/iteration_helpers.html"> |
9 <link rel="import" href="/tracing/base/scalar.html"> | 9 <link rel="import" href="/tracing/base/scalar.html"> |
10 <link rel="import" href="/tracing/base/unit.html"> | 10 <link rel="import" href="/tracing/base/unit.html"> |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 if (expectedSubRowCount === undefined) { | 199 if (expectedSubRowCount === undefined) { |
200 assert.isUndefined(row.subRows); | 200 assert.isUndefined(row.subRows); |
201 } else { | 201 } else { |
202 assert.lengthOf(row.subRows, expectedSubRowCount); | 202 assert.lengthOf(row.subRows, expectedSubRowCount); |
203 } | 203 } |
204 | 204 |
205 const expectedContexts = expectations.contexts; | 205 const expectedContexts = expectations.contexts; |
206 if (expectedContexts === undefined) { | 206 if (expectedContexts === undefined) { |
207 assert.isUndefined(row.contexts); | 207 assert.isUndefined(row.contexts); |
208 } else { | 208 } else { |
209 assert.deepEqual(tr.b.asArray(row.contexts), expectedContexts); | 209 assert.deepEqual(Array.from(row.contexts), expectedContexts); |
210 } | 210 } |
211 } | 211 } |
212 | 212 |
213 function buildProcessMemoryDumps(count, preFinalizeDumpsCallback) { | 213 function buildProcessMemoryDumps(count, preFinalizeDumpsCallback) { |
214 const pmds = new Array(count); | 214 const pmds = new Array(count); |
215 tr.c.TestUtils.newModel(function(model) { | 215 tr.c.TestUtils.newModel(function(model) { |
216 const process = model.getOrCreateProcess(1); | 216 const process = model.getOrCreateProcess(1); |
217 for (let i = 0; i < count; i++) { | 217 for (let i = 0; i < count; i++) { |
218 const timestamp = 10 + i; | 218 const timestamp = 10 + i; |
219 const gmd = addGlobalMemoryDump(model, {ts: timestamp}); | 219 const gmd = addGlobalMemoryDump(model, {ts: timestamp}); |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 { | 1253 { |
1254 icon: '\u26A0', | 1254 icon: '\u26A0', |
1255 message: 'provided size was less than the aggregated size of ' + | 1255 message: 'provided size was less than the aggregated size of ' + |
1256 'the children at some selected timestamps', | 1256 'the children at some selected timestamps', |
1257 color: 'red' | 1257 color: 'red' |
1258 } | 1258 } |
1259 ]); | 1259 ]); |
1260 }); | 1260 }); |
1261 }); | 1261 }); |
1262 </script> | 1262 </script> |
OLD | NEW |