Chromium Code Reviews| Index: chrome/browser/resources/chromeos/switch_access/testable_tree_walker.js |
| diff --git a/chrome/browser/resources/chromeos/switch_access/testable_switch_access.js b/chrome/browser/resources/chromeos/switch_access/testable_tree_walker.js |
| similarity index 67% |
| rename from chrome/browser/resources/chromeos/switch_access/testable_switch_access.js |
| rename to chrome/browser/resources/chromeos/switch_access/testable_tree_walker.js |
| index c5cdde736627254bd5b0ed86d0aea4e907974889..bc12b274832842912427d44f11824f6a9f3e4b24 100644 |
| --- a/chrome/browser/resources/chromeos/switch_access/testable_switch_access.js |
| +++ b/chrome/browser/resources/chromeos/switch_access/testable_tree_walker.js |
| @@ -3,16 +3,15 @@ |
| // found in the LICENSE file. |
| /** |
| - * Subclass of SwitchAccess that exposes SwitchAccess's methods for testing. |
| + * Subclass of AutomationTreeWalker that exposes AutomationTreeWalker's methods |
| + * for testing. |
|
David Tseng
2017/03/29 21:57:20
@extends {AutomationTreeWalker}
(I know this doesn
elichtenberg
2017/03/30 21:46:56
Done.
|
| */ |
| -let TestableSwitchAccess = function() { |
| - SwitchAccess.call(this); |
| +function TestableTreeWalker() { |
| + AutomationTreeWalker.call(this); |
| }; |
| -TestableSwitchAccess.prototype = { |
| - __proto__: SwitchAccess.prototype, |
| - |
| - init_: function() {}, |
| +TestableTreeWalker.prototype = { |
| + __proto__: AutomationTreeWalker.prototype, |
| getNextNode: function(node) { |
|
David Tseng
2017/03/29 21:57:21
I don't see that much value in having this in its
elichtenberg
2017/03/30 21:46:56
I agree. I'm just going to access the private memb
|
| return this.getNextNode_(node); |