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

Unified Diff: third_party/WebKit/LayoutTests/editing/input/option-page-up-down.html

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/editing/input/option-page-up-down.html
diff --git a/third_party/WebKit/LayoutTests/editing/input/option-page-up-down.html b/third_party/WebKit/LayoutTests/editing/input/option-page-up-down.html
index 8d567835f9699e109d742839cab7577a0ed12c48..55d35ad73779a7202f6c16dc09c773a519a44fcf 100644
--- a/third_party/WebKit/LayoutTests/editing/input/option-page-up-down.html
+++ b/third_party/WebKit/LayoutTests/editing/input/option-page-up-down.html
@@ -45,31 +45,31 @@ function runCursorMoveTest(testName, frame, selectionSource)
if (!window.eventSender)
return;
- eventSender.keyDown("pageDown", modifiers);
+ eventSender.keyDown("PageDown", modifiers);
var line = selectionSource.getSelection().baseNode.nodeValue;
if (line != "line 3")
throw "cursor should be at line 3, not " + line;
- eventSender.keyDown("pageDown", modifiers);
+ eventSender.keyDown("PageDown", modifiers);
var line = selectionSource.getSelection().baseNode.nodeValue;
if (line != "line 6")
throw "cursor should be at line 6, not " + line;
- eventSender.keyDown("pageUp", modifiers);
+ eventSender.keyDown("PageUp", modifiers);
var line = selectionSource.getSelection().baseNode.nodeValue;
if (line != "line 3")
throw "cursor should be at line 3, not " + line;
- // Test that on Mac pageDown/pageUp does not move the cursor at all.
+ // Test that on Mac PageDown/PageUp does not move the cursor at all.
if (onMacPlatform) {
- eventSender.keyDown("pageDown", []);
+ eventSender.keyDown("PageDown", []);
var line = selectionSource.getSelection().baseNode.nodeValue;
if (line != "line 3") {
document.getElementById("results").innerText = "cursor should be at line 3, not " + line;
throw "cursor should be at line 3, not " + line;
}
- eventSender.keyDown("pageUp", []);
+ eventSender.keyDown("PageUp", []);
var line = selectionSource.getSelection().baseNode.nodeValue;
if (line != "line 3") {
document.getElementById("results").innerText = "cursor should be at line 3, not " + line;

Powered by Google App Engine
This is Rietveld 408576698