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

Unified Diff: chrome/browser/resources/chromeos/chromevox/testing/chromevox_e2e_test_base.js

Issue 1935993003: SELECT element: Ignore synthetic events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix openPicker() Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698