aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/options.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-22 13:14:25 +0200
committerScott González <scott.gonzalez@gmail.com>2015-09-25 13:47:27 -0400
commit0bfbd21d4fefa98d165b7d50277bd23be84e919a (patch)
tree5cac15ca983cfb29a27f5514fed5ffabc8ac76f9 /tests/unit/tabs/options.js
parentef8ac2a9f2a98600a029553e45cbde42ca179066 (diff)
downloadjquery-ui-0bfbd21d4fefa98d165b7d50277bd23be84e919a.tar.gz
jquery-ui-0bfbd21d4fefa98d165b7d50277bd23be84e919a.zip
Tabs: Adjust handling of disabled option, using _setOptionDisabled
Tabs support multiple values to disable individual tabs. Only add the ui-tabs-disabled class when all tabs are disabled. Ref #9151 Closes gh-1599
Diffstat (limited to 'tests/unit/tabs/options.js')
-rw-r--r--tests/unit/tabs/options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/tabs/options.js b/tests/unit/tabs/options.js
index f9d9857b1..4092cfcf8 100644
--- a/tests/unit/tabs/options.js
+++ b/tests/unit/tabs/options.js
@@ -185,7 +185,7 @@ test( "disabled", function( assert ) {
disabled( element, true );
assert.lacksClasses( element.tabs( "widget" ), "ui-state-disabled" );
- assert.lacksClasses( element.tabs( "widget" ), "ui-tabs-disabled" );
+ assert.hasClasses( element.tabs( "widget" ), "ui-tabs-disabled" );
ok( !element.tabs( "widget" ).attr( "aria-disabled" ), "after: wrapper doesn't have aria-disabled attr" );
event = $.Event( "click" );