aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_deprecated.js
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2011-03-26 22:14:17 -0400
committerDavid Petersen <public@petersendidit.com>2011-03-27 14:56:20 -0400
commit1e2d3145fff7cdeca61e62f95eb1e30c37e664c5 (patch)
tree2ffd09f0bfb1a18b01b89c08123ad8d84a0e89cd /tests/unit/tabs/tabs_deprecated.js
parentf6e7b6c9f6b49e4c7ab648bd617fe724ce0fb417 (diff)
downloadjquery-ui-1e2d3145fff7cdeca61e62f95eb1e30c37e664c5.tar.gz
jquery-ui-1e2d3145fff7cdeca61e62f95eb1e30c37e664c5.zip
Tabs: Deprecate url method; use aria-controls instead of title to specify panels. Fixes #7132 Tabs: Deprecate url method; use aria-controls instead of title to specify panels
Diffstat (limited to 'tests/unit/tabs/tabs_deprecated.js')
-rw-r--r--tests/unit/tabs/tabs_deprecated.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs_deprecated.js b/tests/unit/tabs/tabs_deprecated.js
index 880ea075e..ef03d84cb 100644
--- a/tests/unit/tabs/tabs_deprecated.js
+++ b/tests/unit/tabs/tabs_deprecated.js
@@ -1,5 +1,19 @@
(function( $ ) {
+module("tabs (deprecated): core");
+
+test( "#4581 - title attribute for remote tabs does not support foreign languages", function() {
+ expect( 1 );
+
+ $( "#tabs2" ).tabs({
+ selected: 3,
+ beforeload: function( event, ui ) {
+ event.preventDefault();
+ equal( ui.panel.id, "∫ßáö_Սե", "proper title" );
+ }
+ });
+});
+
module("tabs (deprecated): options");
test('ajaxOptions', function() {
@@ -148,4 +162,14 @@ test('length', function() {
equals(el.tabs('length'), $('ul a', el).length, ' should return length');
});
+test('url', function() {
+ el = $('#tabs2').tabs();
+ var tab = el.find('a:eq(3)'),
+ url = tab.attr('href');
+
+ el.tabs('url', 3, "data/test2.html");
+ equals(tab.attr('href'), 'data/test2.html', 'Url was updated');
+ tab.attr('href', url );
+});
+
}( jQuery ) );