Sha256: f978ab9db38aff412ba6cf45b61dcaaad08212ad73827764a6d6d95a2d77d68c

Contents?: true

Size: 572 Bytes

Versions: 8

Compression:

Stored size: 572 Bytes

Contents

/*
 * selectable_events.js
 */
(function($) {

module("selectable: events");

test("start", function() {
	expect(2);
	el = $("#selectable1");
	el.selectable({
		start: function(ev, ui) {
			ok(true, "drag fired start callback");
			equals(this, el[0], "context of callback");
		}
	});
	el.simulate("drag", 20, 20);
});

test("stop", function() {
	expect(2);
	el = $("#selectable1");
	el.selectable({
		start: function(ev, ui) {
			ok(true, "drag fired stop callback");
			equals(this, el[0], "context of callback");
		}
	});
	el.simulate("drag", 20, 20);
});

})(jQuery);

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
survivalkit-0.3.4 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.3.3 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.3.3 templates/drupal/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.3.2 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.3.1 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.3 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.2.1 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js
survivalkit-0.1 templates/project/sources/jquery-ui/tests/unit/selectable/selectable_events.js