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

Side by Side Diff: tracing/tracing/ui/analysis/memory_dump_vm_regions_details_pane_test.html

Issue 2955043002: Remove tr.b.asArray. (Closed)
Patch Set: Created 3 years, 5 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 (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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698