diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-21 03:25:02 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-21 03:25:02 +0000 |
commit | f80d9eb465e428b3900bc0b741392f14ecd859f0 (patch) | |
tree | d7e62555d0ebc4c05bf3ec881bff78428ade71c5 /tests/unit/core/core.js | |
parent | debb342662dd669224e56e358e87fc37605b9d70 (diff) | |
download | jquery-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.js')
-rw-r--r-- | tests/unit/core/core.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index 4be475486..53f392370 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -3,56 +3,6 @@ */ (function($) { -module("selectors"); - -test("tabbable - enabled elements", function() { - expect(10); - - ok( $('#input1-1').is(':tabbable'), 'input, no type'); - ok( $('#input1-2').is(':tabbable'), 'input, type text'); - ok( $('#input1-3').is(':tabbable'), 'input, type checkbox'); - ok( $('#input1-4').is(':tabbable'), 'input, type radio'); - ok( $('#input1-5').is(':tabbable'), 'input, type button'); - ok(!$('#input1-6').is(':tabbable'), 'input, type hidden'); - ok( $('#input1-7').is(':tabbable'), 'select'); - ok( $('#input1-8').is(':tabbable'), 'textarea'); - ok( $('#anchor1-1').is(':tabbable'), 'anchor with href'); - ok(!$('#anchor1-2').is(':tabbable'), 'anchor without href'); -}); - -test("tabbable - disabled elements", function() { - expect(8); - - ok(!$('#input2-1').is(':tabbable'), 'input, no type'); - ok(!$('#input2-2').is(':tabbable'), 'input, type text'); - ok(!$('#input2-3').is(':tabbable'), 'input, type checkbox'); - ok(!$('#input2-4').is(':tabbable'), 'input, type radio'); - ok(!$('#input2-5').is(':tabbable'), 'input, type button'); - ok(!$('#input2-6').is(':tabbable'), 'input, type hidden'); - ok(!$('#input2-7').is(':tabbable'), 'select'); - ok(!$('#input2-8').is(':tabbable'), 'textarea'); -}); - -test("tabbable - hidden styles", function() { - expect(6); - - ok(!$('#input3-1').is(':tabbable'), 'input, hidden wrapper - display: none'); - ok(!$('#anchor3-1').is(':tabbable'), 'anchor, hidden wrapper - display: none'); - ok(!$('#input3-2').is(':tabbable'), 'input, hidden wrapper - visibility: hidden'); - ok(!$('#anchor3-2').is(':tabbable'), 'anchor, hidden wrapper - visibility: hidden'); - ok(!$('#input3-3').is(':tabbable'), 'input, display: none'); - ok(!$('#input3-4').is(':tabbable'), 'input, visibility: hidden'); -}); - -test("tabbable - tabindex", function() { - expect(4); - - ok( $('#input4-1').is(':tabbable'), 'input, tabindex 0'); - ok( $('#input4-2').is(':tabbable'), 'input, tabindex 10'); - ok(!$('#input4-3').is(':tabbable'), 'input, tabindex -1'); - ok(!$('#input4-4').is(':tabbable'), 'input, tabindex -50'); -}); - module('jQuery extensions'); test("attr - aria", function() { |