blob: 331bae1465f720dad8228618528311b5e5f7623b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* selectable_events.js
*/
(function($) {
module("selectable: events");
test("start", function() {
expect(2);
var el = $("#selectable1");
el.selectable({
start: function() {
ok(true, "drag fired start callback");
equal(this, el[0], "context of callback");
}
});
el.simulate("drag", 20, 20);
});
test("stop", function() {
expect(2);
var el = $("#selectable1");
el.selectable({
start: function() {
ok(true, "drag fired stop callback");
equal(this, el[0], "context of callback");
}
});
el.simulate("drag", 20, 20);
});
})(jQuery);
|