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> |