aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core/core.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-21 03:25:02 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-21 03:25:02 +0000
commitf80d9eb465e428b3900bc0b741392f14ecd859f0 (patch)
treed7e62555d0ebc4c05bf3ec881bff78428ade71c5 /tests/unit/core/core.html
parentdebb342662dd669224e56e358e87fc37605b9d70 (diff)
downloadjquery-ui-f80d9eb465e428b3900bc0b741392f14ecd859f0.tar.gz
jquery-ui-f80d9eb465e428b3900bc0b741392f14ecd859f0.zip
Core: Partial fix for #3559: Proper implementation for :focusable and :tabbable selectors.
Diffstat (limited to 'tests/unit/core/core.html')
-rw-r--r--tests/unit/core/core.html104
1 files changed, 70 insertions, 34 deletions
diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html
index d0ff8fbad..cf1037027 100644
--- a/tests/unit/core/core.html
+++ b/tests/unit/core/core.html
@@ -12,50 +12,86 @@
<script type="text/javascript" src="../../../external/simulate/jquery.simulate.js"></script>
<script type="text/javascript" src="core.js"></script>
+ <script type="text/javascript" src="selector.js"></script>
</head>
<body>
<div id="main">
- <div id="wrap1">
- <input id="input1-1" />
- <input type="text" id="input1-2" />
- <input type="checkbox" id="input1-3" />
- <input type="radio" id="input1-4" />
- <input type="button" id="input1-5" />
- <input type="hidden" id="input1-6" />
- <select id="input1-7"></select>
- <textarea id="input1-8"></textarea>
- <a href="#" id="anchor1-1">anchor</a>
- <a id="anchor1-2">anchor</a>
+ <div>
+ <input id="visibleAncestor-inputTypeNone" />
+ <input type="text" id="visibleAncestor-inputTypeText" />
+ <input type="checkbox" id="visibleAncestor-inputTypeCheckbox" />
+ <input type="radio" id="visibleAncestor-inputTypeRadio" />
+ <input type="button" id="visibleAncestor-inputTypeButton" />
+ <input type="hidden" id="visibleAncestor-inputTypeHidden" />
+ <button id="visibleAncestor-button"></button>
+ <select id="visibleAncestor-select">
+ <option>option</option>
+ </select>
+ <textarea id="visibleAncestor-textarea"></textarea>
+ <object id="visibleAncestor-object"></object>
+ <a href="#" id="visibleAncestor-anchorWithHref">anchor</a>
+ <a id="visibleAncestor-anchorWithoutHref">anchor</a>
+ <map>
+ <area href="#" id="visibleAncestor-areaWithHref" alt="" />
+ <area id="visibleAncestor-areaWithoutHref" alt="" />
+ </map>
+ <span id="visibleAncestor-span"></span>
+ <div id="visibleAncestor-div"></div>
+ <span id="visibleAncestor-spanWithTabindex" tabindex="1"></span>
+ <div id="visibleAncestor-divWithNegativeTabindex" tabindex="-1"></div>
</div>
- <div id="wrap2">
- <input id="input2-1" disabled="disabled" />
- <input type="text" id="input2-2" disabled="disabled" />
- <input type="checkbox" id="input2-3" disabled="disabled" />
- <input type="radio" id="input2-4" disabled="disabled" />
- <input type="button" id="input2-5" disabled="disabled" />
- <input type="hidden" id="input2-6" disabled="disabled" />
- <select id="input2-7" disabled="disabled"></select>
- <textarea id="input2-8" disabled="disabled"></textarea>
+
+ <div>
+ <input id="disabledElement-inputTypeNone" disabled="disabled" />
+ <input type="text" id="disabledElement-inputTypeText" disabled="disabled" />
+ <input type="checkbox" id="disabledElement-inputTypeCheckbox" disabled="disabled" />
+ <input type="radio" id="disabledElement-inputTypeRadio" disabled="disabled" />
+ <input type="button" id="disabledElement-inputTypeButton" disabled="disabled" />
+ <input type="hidden" id="disabledElement-inputTypeHidden" disabled="disabled" />
+ <button id="disabledElement-button" disabled="disabled"></button>
+ <select id="disabledElement-select" disabled="disabled"></select>
+ <textarea id="disabledElement-textarea" disabled="disabled"></textarea>
</div>
- <div id="wrap3">
- <div id="wrap3-1" style="display: none;">
- <input id="input3-1" />
- <a href="#" id="anchor3-1">anchor</a>
+
+ <div>
+ <div id="displayNoneAncestor" style="display: none;">
+ <input id="displayNoneAncestor-input" />
+ <span tabindex="1" id="displayNoneAncestor-span"></span>
</div>
- <div id="wrap3-2" style="visibility: hidden;">
- <input id="input3-2" />
- <a href="#" id="anchor3-2">anchor</a>
+
+ <div id="visibilityHiddenAncestor" style="visibility: hidden;">
+ <input id="visibilityHiddenAncestor-input" />
+ <span tabindex="1" id="visibilityHiddenAncestor-span"></span>
</div>
- <input id="input3-3" style="display: none;">
- <input id="input3-4" style="visibility: hidden;">
+
+ <input id="displayNone-input" style="display: none;" />
+ <input id="visibilityHidden-input" style="visibility: hidden;" />
+
+ <span tabindex="1" id="displayNone-span" style="display: none;"></span>
+ <span tabindex="1" id="visibilityHidden-span" style="visibility: hidden;"></span>
</div>
- <div id="wrap4">
- <input id="input4-1" tabindex="0" />
- <input id="input4-2" tabindex="10" />
- <input id="input4-3" tabindex="-1" />
- <input id="input4-4" tabindex="-50" />
+
+ <div>
+ <input id="inputTabindex0" tabindex="0" />
+ <input id="inputTabindex10" tabindex="10" />
+ <input id="inputTabindex-1" tabindex="-1" />
+ <input id="inputTabindex-50" tabindex="-50" />
+
+ <span id="spanTabindex0" tabindex="0"></span>
+ <span id="spanTabindex10" tabindex="10"></span>
+ <span id="spanTabindex-1" tabindex="-1"></span>
+ <span id="spanTabindex-50" tabindex="-50"></span>
</div>
+
+ <div>
+ <input id="inputTabindexfoo" tabindex="foo" />
+ <input id="inputTabindex3foo" tabindex="3foo" />
+
+ <span id="spanTabindexfoo" tabindex="foo"></span>
+ <span id="spanTabindex3foo" tabindex="3foo"></span>
+ </div>
+
<div id="aria"></div>
</div>