| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 /* 2 * selectable_events.js 3 */ 4 (function($) { 5 6 module("selectable: events"); 7 8 test("start", function() { 9 expect(2); 10 el = $("#selectable1"); 11 el.selectable({ 12 start: function(ev, ui) { 13 ok(true, "drag fired start callback"); 14 equals(this, el[0], "context of callback"); 15 } 16 }); 17 el.simulate("drag", 20, 20); 18 }); 19 20 test("stop", function() { 21 expect(2); 22 el = $("#selectable1"); 23 el.selectable({ 24 start: function(ev, ui) { 25 ok(true, "drag fired stop callback"); 26 equals(this, el[0], "context of callback"); 27 } 28 }); 29 el.simulate("drag", 20, 20); 30 }); 31 32 })(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 |