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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/tabindex-behavior.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/tabindex-clamp.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/tabindex-behavior.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/tabindex-behavior.html b/third_party/WebKit/LayoutTests/fast/dom/tabindex-behavior.html
new file mode 100644
index 0000000000000000000000000000000000000000..4749854ee560317e2b08c78a67df7f9c2916bb5f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/tabindex-behavior.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<body>
+<input id="elementWithTabIndex" tabindex="3">
+</body>
+<script>
+test(function(){
+ var e = document.getElementById('elementWithTabIndex');
+ assert_equals(e.tabIndex, 3);
+ e.setAttribute("tabindex", "12039810238102983");
+ assert_equals(e.getAttribute("tabindex"), "12039810238102983");
+ assert_equals(e.tabIndex, 0);
+ e.tabIndex = 3;
+ e.setAttribute("tabindex", "-12039810238102983");
+ assert_equals(e.getAttribute("tabindex"), "-12039810238102983");
+ assert_equals(e.tabIndex, 0);
+}, 'Track that setting tabIndex to out of range values the reflected value is 0.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/tabindex-clamp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698