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

Unified Diff: third_party/WebKit/LayoutTests/inspector/editor/editor-test.js

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 6 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: third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
diff --git a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
index d357e7b018d975615a914b36f44f88d2a296301b..a7ac98b09e04a58f25908c600c50b020935670db 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
+++ b/third_party/WebKit/LayoutTests/inspector/editor/editor-test.js
@@ -66,19 +66,19 @@ InspectorTest.typeIn = function(editor, typeText, callback)
var iterationCallback = charIndex + 1 === typeText.length ? callback : noop;
switch (typeText[charIndex]) {
case "\n":
- InspectorTest.fakeKeyEvent(editor, "enter", null, iterationCallback);
+ InspectorTest.fakeKeyEvent(editor, "Enter", null, iterationCallback);
break;
case "L":
- InspectorTest.fakeKeyEvent(editor, "leftArrow", null, iterationCallback);
+ InspectorTest.fakeKeyEvent(editor, "ArrowLeft", null, iterationCallback);
break;
case "R":
- InspectorTest.fakeKeyEvent(editor, "rightArrow", null, iterationCallback);
+ InspectorTest.fakeKeyEvent(editor, "ArrowRight", null, iterationCallback);
break;
case "U":
- InspectorTest.fakeKeyEvent(editor, "upArrow", null, iterationCallback);
+ InspectorTest.fakeKeyEvent(editor, "ArrowUp", null, iterationCallback);
break;
case "D":
- InspectorTest.fakeKeyEvent(editor, "downArrow", null, iterationCallback);
+ InspectorTest.fakeKeyEvent(editor, "ArrowDown", null, iterationCallback);
break;
default:
InspectorTest.fakeKeyEvent(editor, typeText[charIndex], null, iterationCallback);
@@ -87,12 +87,12 @@ InspectorTest.typeIn = function(editor, typeText, callback)
}
var eventCodes = {
- enter: 13,
- home: 36,
- leftArrow: 37,
- upArrow: 38,
- rightArrow: 39,
- downArrow: 40
+ Enter: 13,
+ Home: 36,
+ ArrowLeft: 37,
+ ArrowUp: 38,
+ ArrowRight: 39,
+ ArrowDown: 40
};
function createCodeMirrorFakeEvent(eventType, code, charCode, modifiers)

Powered by Google App Engine
This is Rietveld 408576698