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

Unified Diff: LayoutTests/platform/linux/fast/events/keydown-menu-key.html

Issue 232573002: Deliver Menu key event after sending context menu event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix for Layout test failure on windows Created 6 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
« no previous file with comments | « no previous file | LayoutTests/platform/linux/fast/events/keydown-menu-key-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/platform/linux/fast/events/keydown-menu-key.html
diff --git a/LayoutTests/fast/events/keydown-function-keys.html b/LayoutTests/platform/linux/fast/events/keydown-menu-key.html
similarity index 62%
copy from LayoutTests/fast/events/keydown-function-keys.html
copy to LayoutTests/platform/linux/fast/events/keydown-menu-key.html
index 790b779232f9c8f77afe399ceda8ba25a993c2e5..f2d024fd1b9c051d93706de84bf08051d759371f 100644
--- a/LayoutTests/fast/events/keydown-function-keys.html
+++ b/LayoutTests/platform/linux/fast/events/keydown-menu-key.html
@@ -1,6 +1,6 @@
<html>
<head>
-<title>Event Test (Sending function-key events)</title>
+<title>Event Test (Sending Menu-key event)</title>
<script language="javascript" type="text/javascript">
function log(str) {
var li = document.createElement("li");
@@ -20,26 +20,17 @@ function onKeyEvent(ev) {
</script>
</head>
<body>
-<p>This test verifies the keycodes sent when we press function keys.</p>
-<textarea id="test" rows="1" cols="40" onkeydown="return onKeyEvent(event);" onkeyup="return onKeyEvent(event);"></textarea>
+<p>This test verifies the keycode sent when we press Menu key.
+This test applies only to Linux and Windows.</p>
+<textarea id="test" rows="1" cols="40" onkeydown="return onKeyEvent(event);"
+onkeyup="return onKeyEvent(event);" oncontextmenu="return onKeyEvent(event);"></textarea>
<ul id="console"></ul>
<script language="javascript" type="text/javascript">
if (window.testRunner)
window.testRunner.dumpAsText();
var textarea = document.getElementById("test");
textarea.focus();
-eventSender.keyDown("F1");
-eventSender.keyDown("F2");
-eventSender.keyDown("F3");
-eventSender.keyDown("F4");
-eventSender.keyDown("F5");
-eventSender.keyDown("F6");
-eventSender.keyDown("F7");
-eventSender.keyDown("F8");
-eventSender.keyDown("F9");
-eventSender.keyDown("F10");
-eventSender.keyDown("F11");
-eventSender.keyDown("F12");
+eventSender.keyDown("menu");
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/platform/linux/fast/events/keydown-menu-key-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698