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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/max-tabindex-focus.html

Issue 2362223002: Stop clamping tabIndex to short range (Closed)
Patch Set: Fix tabindex-clamp.html Created 4 years, 1 month 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/fast/events/max-tabindex-focus.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/max-tabindex-focus.html b/third_party/WebKit/LayoutTests/fast/events/max-tabindex-focus.html
new file mode 100644
index 0000000000000000000000000000000000000000..57cd52bb991d923109d1ccf740117dc97e1fe2de
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/max-tabindex-focus.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+var tabTest = async_test("Tests that an element with the maximum tabIndex value can be focused.");
+
+function success()
+{
+ tabTest.done();
+}
+
+setTimeout(function () {
+ tabTest.step(function () {
+ var element = document.getElementById('focusMe')
+ element.focus();
+
+ document.getElementById("elementWithMaxTabIndex").onfocus = success;
+ eventSender.keyDown("\t");
+ });
+}, 10);
+</script>
+<body>
+<input id="focusMe" tabindex="1">
+<input id="elementWithMaxTabIndex" tabindex="2147483647">
+</body>

Powered by Google App Engine
This is Rietveld 408576698