mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
added tests for disabled property
This commit is contained in:
parent
a4488aff7c
commit
008def00bd
@ -64,7 +64,20 @@ test('cookie', function() {
|
||||
});
|
||||
|
||||
test('disabled', function() {
|
||||
ok(false, "missing test - untested code is broken code.");
|
||||
expect(4);
|
||||
|
||||
el = $('#tabs1').tabs();
|
||||
same(el.tabs('option', 'disabled'), [ ], "should not disable any tab by default");
|
||||
|
||||
el.tabs('option', 'disabled', [ 1 ]);
|
||||
same(el.tabs('option', 'disabled'), [ 1 ], "should set property"); // everything else is being tested in methods module...
|
||||
|
||||
// FIXME bug... property needs to be [ 1 ], since selected tab cannot be disabled!
|
||||
el.tabs('option', 'disabled', [ 0, 1 ]);
|
||||
same(el.tabs('option', 'disabled'), [ 1 ], "should disable given tabs but not selected one"); // ...
|
||||
|
||||
el.tabs('option', 'disabled', [ ]);
|
||||
same(el.tabs('option', 'disabled'), [ ], "should not disable any tab"); // ...
|
||||
});
|
||||
|
||||
test('event', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user