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