aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_deprecated.js
diff options
context:
space:
mode:
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 ) );