| 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/core/test_utils.html"> | 9 <link rel="import" href="/tracing/core/test_utils.html"> |
| 10 <link rel="import" href="/tracing/model/container_memory_dump.html"> | 10 <link rel="import" href="/tracing/model/container_memory_dump.html"> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 if (expectedSubRowCount === undefined) { | 238 if (expectedSubRowCount === undefined) { |
| 239 assert.isUndefined(row.subRows); | 239 assert.isUndefined(row.subRows); |
| 240 } else { | 240 } else { |
| 241 assert.lengthOf(row.subRows, expectedSubRowCount); | 241 assert.lengthOf(row.subRows, expectedSubRowCount); |
| 242 } | 242 } |
| 243 | 243 |
| 244 if (typeof expectedContexts === 'function') { | 244 if (typeof expectedContexts === 'function') { |
| 245 expectedContexts(row.contexts); | 245 expectedContexts(row.contexts); |
| 246 } else if (expectedContexts !== undefined) { | 246 } else if (expectedContexts !== undefined) { |
| 247 assert.deepEqual(tr.b.asArray(row.contexts), expectedContexts); | 247 assert.deepEqual(Array.from(row.contexts), expectedContexts); |
| 248 } else { | 248 } else { |
| 249 assert.isUndefined(row.contexts); | 249 assert.isUndefined(row.contexts); |
| 250 } | 250 } |
| 251 } | 251 } |
| 252 | 252 |
| 253 function genericMatcher(callback, defined) { | 253 function genericMatcher(callback, defined) { |
| 254 return function(actualValues) { | 254 return function(actualValues) { |
| 255 assert.lengthOf(actualValues, defined.length); | 255 assert.lengthOf(actualValues, defined.length); |
| 256 for (let i = 0; i < defined.length; i++) { | 256 for (let i = 0; i < defined.length; i++) { |
| 257 const actualValue = actualValues[i]; | 257 const actualValue = actualValues[i]; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 487 |
| 488 // Just check that the table has the right shape. | 488 // Just check that the table has the right shape. |
| 489 const table = viewEl.$.table; | 489 const table = viewEl.$.table; |
| 490 const columns = table.tableColumns; | 490 const columns = table.tableColumns; |
| 491 checkColumns(columns, EXPECTED_COLUMNS, AggregationMode.DIFF); | 491 checkColumns(columns, EXPECTED_COLUMNS, AggregationMode.DIFF); |
| 492 const rows = table.tableRows; | 492 const rows = table.tableRows; |
| 493 assert.lengthOf(rows, 1); | 493 assert.lengthOf(rows, 1); |
| 494 }); | 494 }); |
| 495 }); | 495 }); |
| 496 </script> | 496 </script> |
| OLD | NEW |