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

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

Issue 1919403002: Use Polymer.dom with childNodes (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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/base/multi_dimensional_view.html'> 9 <link rel='import' href='/tracing/base/multi_dimensional_view.html'>
10 <link rel='import' href='/tracing/core/test_utils.html'> 10 <link rel='import' href='/tracing/core/test_utils.html'>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 function checkRow(columns, row, expectedDimension, expectedTitle, 213 function checkRow(columns, row, expectedDimension, expectedTitle,
214 expectedSizes, expectedDefinedValues) { 214 expectedSizes, expectedDefinedValues) {
215 var formattedTitle = columns[0].formatTitle(row); 215 var formattedTitle = columns[0].formatTitle(row);
216 switch (expectedDimension) { 216 switch (expectedDimension) {
217 case ROOT: 217 case ROOT:
218 assert.equal(formattedTitle, expectedTitle); 218 assert.equal(formattedTitle, expectedTitle);
219 break; 219 break;
220 220
221 case STACK_FRAME: 221 case STACK_FRAME:
222 case OBJECT_TYPE: 222 case OBJECT_TYPE:
223 assert.lengthOf(formattedTitle.childNodes, 2); 223 assert.lengthOf(Polymer.dom(formattedTitle).childNodes, 2);
224 assert.strictEqual(formattedTitle.childNodes[0].textContent, 224 assert.strictEqual(
225 Polymer.dom(formattedTitle).childNodes[0].textContent,
225 expectedDimension === STACK_FRAME ? '\u0192' : '\u24C9'); 226 expectedDimension === STACK_FRAME ? '\u0192' : '\u24C9');
226 assert.strictEqual( 227 assert.strictEqual(
227 formattedTitle.childNodes[1].textContent, expectedTitle); 228 Polymer.dom(formattedTitle).childNodes[1].textContent,
229 expectedTitle);
228 break; 230 break;
229 231
230 default: 232 default:
231 throw new Error('Invalid expected dimension: ' + expectedDimension); 233 throw new Error('Invalid expected dimension: ' + expectedDimension);
232 } 234 }
233 235
234 checkSizeNumericFields(row, columns[1], expectedSizes); 236 checkSizeNumericFields(row, columns[1], expectedSizes);
235 237
236 var actualDefinedValues = new Array(row.contexts.length); 238 var actualDefinedValues = new Array(row.contexts.length);
237 for (var i = 0; i < row.contexts.length; i++) 239 for (var i = 0; i < row.contexts.length; i++)
(...skipping 3408 matching lines...) Expand 10 before | Expand all | Expand 10 after
3646 dimension: ROOT, 3648 dimension: ROOT,
3647 title: 'partition_alloc', 3649 title: 'partition_alloc',
3648 size: [4194304, undefined, 4954521], 3650 size: [4194304, undefined, 4954521],
3649 defined: [true, false, true], 3651 defined: [true, false, true],
3650 children: 5 // No need to check the full structure again. 3652 children: 5 // No need to check the full structure again.
3651 } 3653 }
3652 ]); 3654 ]);
3653 }); 3655 });
3654 }); 3656 });
3655 </script> 3657 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698