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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 var tabTest = async_test("Tests that an element with the maximum tabIndex value can be focused.");
6
7 function success()
8 {
9 tabTest.done();
10 }
11
12 setTimeout(function () {
13 tabTest.step(function () {
14 var element = document.getElementById('focusMe')
15 element.focus();
16
17 document.getElementById("elementWithMaxTabIndex").onfocus = success;
18 eventSender.keyDown("\t");
19 });
20 }, 10);
21 </script>
22 <body>
23 <input id="focusMe" tabindex="1">
24 <input id="elementWithMaxTabIndex" tabindex="2147483647">
25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698