| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 function initialize_DumpAccessibilityNodesTest() { | 5 function initialize_DumpAccessibilityNodesTest() { |
| 6 | 6 |
| 7 var nodeInfo = {}; | 7 var nodeInfo = {}; |
| 8 InspectorTest.trackGetChildNodesEvents(nodeInfo); | 8 InspectorTest.trackGetChildNodesEvents(nodeInfo); |
| 9 | 9 |
| 10 InspectorTest.dumpAccessibilityNodesBySelectorAndCompleteTest = function(selecto
r, fetchRelatives, msg) { | 10 InspectorTest.dumpAccessibilityNodesBySelectorAndCompleteTest = function(selecto
r, fetchRelatives, msg) { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 var rootNode = Object.values(nodeMap).find((node) => !("parentId" in node)); | 319 var rootNode = Object.values(nodeMap).find((node) => !("parentId" in node)); |
| 320 for (var node of Object.values(nodeMap)) | 320 for (var node of Object.values(nodeMap)) |
| 321 delete node.parentId; | 321 delete node.parentId; |
| 322 | 322 |
| 323 InspectorTest.log("\n" + printNodeAndChildren(rootNode)); | 323 InspectorTest.log("\n" + printNodeAndChildren(rootNode)); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } | 326 } |
| OLD | NEW |