| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 /* 2 * progressbar_methods.js 3 */ 4 (function($) { 5 6 module("progressbar: methods"); 7 8 test("init", function() { 9 expect(1); 10 11 $("<div></div>").appendTo('body').progressbar().remove(); 12 ok(true, '.progressbar() called on element'); 13 14 }); 15 16 test("destroy", function() { 17 expect(1); 18 19 $("<div></div>").appendTo('body').progressbar().progressbar("destroy").remove(); 20 ok(true, '.progressbar("destroy") called on element'); 21 22 }); 23 24 test('value', function() { 25 expect(3); 26 27 var el = $('<div></div>').progressbar({ value: 20 }); 28 equals(el.progressbar('value'), 20, 'correct value as getter'); 29 equals(el.progressbar('value', 30), el, 'chainable as setter'); 30 equals(el.progressbar('option', 'value'), 30, 'correct value after setter'); 31 }); 32 33 })(jQuery);
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |