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

Unified Diff: chrome/test/data/textinput/keyevent_logging.html

Issue 23890039: Do not rewrite AltGr Key as Alt+Ctrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove HTML file Created 7 years, 3 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/textinput/keyevent_logging.html
diff --git a/chrome/test/data/textinput/keyevent_logging.html b/chrome/test/data/textinput/keyevent_logging.html
deleted file mode 100644
index 0f5518e064597369bc946a9b14cc63fadb88828e..0000000000000000000000000000000000000000
--- a/chrome/test/data/textinput/keyevent_logging.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html>
- <head>
- <script src="textinput_helper.js"></script>
- <script>
- var expectations = new Array();
- var result = true;
-
- /**
- * Expectations are of the form:
- * [ { keyCode: 39, shiftKey: true, ctrlKey: false, altKey: true}, ... ]
- */
- function initKeyDownExpectations(expect) {
- expectations = expect;
- result = true;
- }
-
- function didTestSucceed() {
- if (!result) {
- window.domAutomationController.send(false);
- } else if (expectations.length != 0) {
- console.error('There are un-satisfied expectations.');
- window.domAutomationController.send(false);
- } else {
- window.domAutomationController.send(true);
- }
- }
-
- window.onload = function() {
- document.getElementById('text_id').onkeydown = function(e) {
- if (expectations.length == 0) {
- console.error('Expectations have been exhausted.');
- return;
- }
-
- if (e.keyCode != expectations[0].keyCode) {
- result = false;
- console.error('keyCode does not match.' +
- ' Expected:' + expectations[0].keyCode +
- ' Actual: ' + e.keyCode);
- }
- if (e.shiftKey != expectations[0].shiftKey) {
- result = false;
- console.error('shiftKey does not match.' +
- ' Expected:' + expectations[0].shiftKey +
- ' Actual: ' + e.shiftKey);
- }
-
- if (e.ctrlKey != expectations[0].ctrlKey) {
- result = false;
- console.error('ctrlKey does not match.' +
- ' Expected:' + expectations[0].ctrlKey +
- ' Actual: ' + e.ctrlKey);
- }
-
- if (e.altKey != expectations[0].altKey) {
- result = false;
- console.error('altKey does not match.' +
- ' Expected:' + expectations[0].altKey +
- ' Actual: ' + e.altKey);
- }
-
- expectations.shift();
- };
- }
- </script>
- </head>
- <body>
- <input type="text" id="text_id">
- </body>
-</html>
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698