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

Unified Diff: LayoutTests/fast/forms/tabs-with-modifiers.html

Issue 434683002: Remove KeyboardEvent.altGraphKey (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: LayoutTests/fast/forms/tabs-with-modifiers.html
diff --git a/LayoutTests/fast/forms/tabs-with-modifiers.html b/LayoutTests/fast/forms/tabs-with-modifiers.html
index 1969c2c51d9495141bbedca97316ea6a95b07a35..f271aff22bd9027874471df9b1818dbf5cc3ee39 100644
--- a/LayoutTests/fast/forms/tabs-with-modifiers.html
+++ b/LayoutTests/fast/forms/tabs-with-modifiers.html
@@ -58,11 +58,11 @@ function addElements(parentElement)
parentElement.appendChild(input);
}
-function dispatchTab(element, shiftKey, metaKey, ctrlKey, altGraphKey)
+function dispatchTab(element, shiftKey, metaKey, ctrlKey)
{
var event = document.createEvent("KeyboardEvents");
var tabKeyIdentifier = "U+0009";
- event.initKeyboardEvent("keydown", true, true, document.defaultView, tabKeyIdentifier, 0, ctrlKey, false, shiftKey, metaKey, altGraphKey);
+ event.initKeyboardEvent("keydown", true, true, document.defaultView, tabKeyIdentifier, 0, ctrlKey, false, shiftKey, metaKey);
element.dispatchEvent(event);
}
@@ -80,13 +80,13 @@ for (i = 0; i < 2; ++i) {
log("resetting focus to middle input\n");
middleInput.focus();
log("test tab case that should advance focus\n");
- dispatchTab(middleInput, (i & 1) != 0, false, false, false);
+ dispatchTab(middleInput, (i & 1) != 0, false, false);
}
-for (i = 2; i < 16; ++i) {
+for (i = 2; i < 8; ++i) {
log("resetting focus to middle input\n");
middleInput.focus();
log("test tab case that should not advance focus\n");
- dispatchTab(middleInput, (i & 1) != 0, (i & 2) != 0, (i & 4) != 0, (i & 8) != 0);
+ dispatchTab(middleInput, (i & 1) != 0, (i & 2) != 0, (i & 4) != 0);
}
</script>
« no previous file with comments | « LayoutTests/fast/events/script-tests/init-events.js ('k') | LayoutTests/fast/forms/tabs-with-modifiers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698