| 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/color.html"> | 8 <link rel="import" href="/tracing/base/color.html"> |
| 9 <link rel="import" href="/tracing/base/color_scheme.html"> | 9 <link rel="import" href="/tracing/base/color_scheme.html"> |
| 10 <link rel="import" href="/tracing/base/scalar.html"> | 10 <link rel="import" href="/tracing/base/scalar.html"> |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 } | 367 } |
| 368 | 368 |
| 369 function checkStringFields(row, column, expectedStrings) { | 369 function checkStringFields(row, column, expectedStrings) { |
| 370 const fields = column.fields(row); | 370 const fields = column.fields(row); |
| 371 | 371 |
| 372 if (expectedStrings === undefined) { | 372 if (expectedStrings === undefined) { |
| 373 assert.isUndefined(fields); | 373 assert.isUndefined(fields); |
| 374 return; | 374 return; |
| 375 } | 375 } |
| 376 | 376 |
| 377 assert.deepEqual(tr.b.asArray(fields), expectedStrings); | 377 assert.deepEqual(Array.from(fields), expectedStrings); |
| 378 } | 378 } |
| 379 | 379 |
| 380 /** | 380 /** |
| 381 * Check the titles, types and aggregation modes of a list of columns. | 381 * Check the titles, types and aggregation modes of a list of columns. |
| 382 * expectedColumns is a list of dictionaries with the following fields: | 382 * expectedColumns is a list of dictionaries with the following fields: |
| 383 * | 383 * |
| 384 * - title: Either the expected title (string), or a matcher for it | 384 * - title: Either the expected title (string), or a matcher for it |
| 385 * (function that accepts the actual title as its argument). | 385 * (function that accepts the actual title as its argument). |
| 386 * - type: The expected class of the column. | 386 * - type: The expected class of the column. |
| 387 * - noAggregation: If true, the column is expected to have no aggregation | 387 * - noAggregation: If true, the column is expected to have no aggregation |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 createTestPane, | 581 createTestPane, |
| 582 isElementDisplayed, | 582 isElementDisplayed, |
| 583 convertToProcessMemoryDumps, | 583 convertToProcessMemoryDumps, |
| 584 extractProcessMemoryDumps, | 584 extractProcessMemoryDumps, |
| 585 extractVmRegions, | 585 extractVmRegions, |
| 586 extractMemoryAllocatorDumps, | 586 extractMemoryAllocatorDumps, |
| 587 extractHeapDumps, | 587 extractHeapDumps, |
| 588 }; | 588 }; |
| 589 }); | 589 }); |
| 590 </script> | 590 </script> |
| OLD | NEW |