From 1729e3a32e4c2e4b922ce799f98ef0a4b1cd360e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 12 Aug 2011 09:37:48 -0400 Subject: [PATCH] Core: Added tests for :focusable and :tabbable form elements. --- tests/unit/core/core.html | 3 +++ tests/unit/core/selector.js | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html index fdde81766..e2d988806 100644 --- a/tests/unit/core/core.html +++ b/tests/unit/core/core.html @@ -46,6 +46,9 @@ +
+
+
diff --git a/tests/unit/core/selector.js b/tests/unit/core/selector.js index de5be3da1..2fb78025c 100644 --- a/tests/unit/core/selector.js +++ b/tests/unit/core/selector.js @@ -79,8 +79,10 @@ test("data", function() { }); test("focusable - visible, enabled elements", function() { - expect(16); + expect(18); + isNotFocusable('#formNoTabindex', 'form'); + isFocusable('#formTabindex', 'form with tabindex'); isFocusable('#visibleAncestor-inputTypeNone', 'input, no type'); isFocusable('#visibleAncestor-inputTypeText', 'input, type text'); isFocusable('#visibleAncestor-inputTypeCheckbox', 'input, type checkbox'); @@ -156,8 +158,10 @@ test("focusable - area elements", function() { }); test("tabbable - visible, enabled elements", function() { - expect(16); + expect(18); + isNotTabbable('#formNoTabindex', 'form'); + isTabbable('#formTabindex', 'form with tabindex'); isTabbable('#visibleAncestor-inputTypeNone', 'input, no type'); isTabbable('#visibleAncestor-inputTypeText', 'input, type text'); isTabbable('#visibleAncestor-inputTypeCheckbox', 'input, type checkbox'); -- 2.39.5