| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * Subclass of SwitchAccess that exposes SwitchAccess's methods for testing. | |
| 7 */ | |
| 8 let TestableSwitchAccess = function() { | |
| 9 SwitchAccess.call(this); | |
| 10 }; | |
| 11 | |
| 12 TestableSwitchAccess.prototype = { | |
| 13 __proto__: SwitchAccess.prototype, | |
| 14 | |
| 15 init_: function() {}, | |
| 16 | |
| 17 getNextNode: function(node) { | |
| 18 return this.getNextNode_(node); | |
| 19 }, | |
| 20 | |
| 21 getPreviousNode: function(node) { | |
| 22 return this.getPreviousNode_(node); | |
| 23 }, | |
| 24 | |
| 25 getYoungestDescendant: function(node) { | |
| 26 return this.getYoungestDescendant_(node); | |
| 27 }, | |
| 28 | |
| 29 isInteresting: function(node) { | |
| 30 return this.isInteresting_(node); | |
| 31 } | |
| 32 }; | |
| OLD | NEW |