aboutsummaryrefslogtreecommitdiffstats
path: root/tests/core.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-18 02:55:25 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-18 02:55:25 +0000
commit29f7dc9a2c078495f6a0ed13c531733146528fb4 (patch)
tree5d56f5a7ecba3c8173de3322c2a85bfecf61348b /tests/core.js
parentce69e7ced4e8786ca5164372007c48a11ba90e72 (diff)
downloadjquery-ui-29f7dc9a2c078495f6a0ed13c531733146528fb4.tar.gz
jquery-ui-29f7dc9a2c078495f6a0ed13c531733146528fb4.zip
Removed all trailing whitespace from .js and .html files
Diffstat (limited to 'tests/core.js')
-rw-r--r--tests/core.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/core.js b/tests/core.js
index 0836fb588..4be475486 100644
--- a/tests/core.js
+++ b/tests/core.js
@@ -7,7 +7,7 @@ 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');
@@ -22,7 +22,7 @@ test("tabbable - enabled elements", function() {
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');
@@ -35,7 +35,7 @@ test("tabbable - disabled elements", function() {
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');
@@ -46,7 +46,7 @@ test("tabbable - hidden styles", function() {
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');
@@ -57,20 +57,20 @@ module('jQuery extensions');
test("attr - aria", function() {
expect(6);
-
+
var el = $('#aria');
-
+
ok(!el.attr('role'), 'role is empty via attr');
equals(el.attr('role', 'tablist').attr('role'), 'tablist', 'role is tablist');
-
+
equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined');
-
+
el.attr('aria-expanded', true);
equals(el.attr('aria-expanded'), 'true', 'aria expanded is true');
-
+
el.removeAttr('aria-expanded');
equals(el.attr('aria-expanded'), undefined, 'aria expanded is undefined after removing');
-
+
el.attr('aria-expanded', false);
equals(el.attr('aria-expanded'), 'false', 'aria expanded is false');
});