Index: chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js |
index d9d508957a5a7b2960d6a05d90a9b695e152629e..fa5f3c61902bbc0761e2d3361f80844a6707a43b 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js |
+++ b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js |
@@ -92,25 +92,6 @@ ChromeVoxE2ETest.prototype = { |
}, |
/** |
- * Send a key to the page. |
- * @param {number} tabId Of the page. |
- * @param {string} key Name of the key (e.g. Down). |
- * @param {string} elementQueryString |
- */ |
- sendKeyToElement: function(tabId, key, elementQueryString) { |
- var code = TestUtils.extractHtmlFromCommentEncodedString(function() {/*! |
- var target = document.body.querySelector('$1'); |
- target.focus(); |
- var evt = document.createEvent('KeyboardEvent'); |
- evt.initKeyboardEvent('keydown', true, true, window, '$0', 0, false, |
- false, false, false); |
- document.activeElement.dispatchEvent(evt); |
- */}, [key, elementQueryString]); |
- |
- chrome.tabs.executeScript(tabId, {code: code}); |
- }, |
- |
- /** |
* Creates a callback that optionally calls {@code opt_callback} when |
* called. If this method is called one or more times, then |
* {@code testDone()} will be called when all callbacks have been called. |