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