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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityModel.js

Issue 2563553002: DevTools: Disallow console.log statements with eslint (Closed)
Patch Set: merge Created 4 years 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Accessibility.AccessibilityNode = class extends SDK.SDKObject { 7 Accessibility.AccessibilityNode = class extends SDK.SDKObject {
8 /** 8 /**
9 * @param {!Accessibility.AccessibilityModel} accessibilityModel 9 * @param {!Accessibility.AccessibilityModel} accessibilityModel
10 * @param {!Protocol.Accessibility.AXNode} payload 10 * @param {!Protocol.Accessibility.AXNode} payload
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 } 295 }
296 296
297 // TODO(aboxhall): Remove once protocol is stable. 297 // TODO(aboxhall): Remove once protocol is stable.
298 /** 298 /**
299 * @param {!SDK.DOMNode} inspectedNode 299 * @param {!SDK.DOMNode} inspectedNode
300 */ 300 */
301 logTree(inspectedNode) { 301 logTree(inspectedNode) {
302 var rootNode = inspectedNode; 302 var rootNode = inspectedNode;
303 while (rootNode.parentNode()) 303 while (rootNode.parentNode())
304 rootNode = rootNode.parentNode(); 304 rootNode = rootNode.parentNode();
305 console.log(rootNode.printSelfAndChildren(inspectedNode)); 305 console.log(rootNode.printSelfAndChildren(inspectedNode)); // eslint-disabl e-line no-console
306 } 306 }
307 }; 307 };
308 308
309 Accessibility.AccessibilityModel._symbol = Symbol('AccessibilityModel'); 309 Accessibility.AccessibilityModel._symbol = Symbol('AccessibilityModel');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698