| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 /* 2 * tabs_core.js 3 */ 4 var el; 5 6 (function($) { 7 8 module("tabs: core"); 9 10 test('ajax', function() { 11 expect(4); 12 stop(); 13 14 el = $('#tabs2'); 15 16 el.tabs({ 17 selected: 2, 18 load: function() { 19 // spinner: default spinner 20 equals($('li:eq(2) > a > span', el).length, 1, "should restore tab markup after spinner is removed"); 21 equals($('li:eq(2) > a > span', el).html(), '3', "should restore tab label after spinner is removed"); 22 el.tabs('destroy'); 23 el.tabs({ 24 selected: 2, 25 spinner: '<img src="spinner.gif" alt="">', 26 load: function() { 27 // spinner: image 28 equals($('li:eq(2) > a > span', el).length, 1, "should restore tab markup after spinner is removed"); 29 equals($('li:eq(2) > a > span', el).html(), '3', "should restore tab label after spinner is removed"); 30 start(); 31 } 32 }); 33 } 34 }); 35 36 }); 37 38 39 })(jQuery);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |