aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectable/selectable_events.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-12-12 16:44:19 +0100
committerFelix Nagel <info@felixnagel.com>2012-12-12 16:44:19 +0100
commitf6372bd7eac41ae2c022ef510ec414d016e820ed (patch)
treeb764593154e334e03701dbc896dbac0154c5d136 /tests/unit/selectable/selectable_events.js
parentd1350f9f1113ef5590ec010f16da7068646aec01 (diff)
parent747d8534520fc3abad81b3c171fa931149398d99 (diff)
downloadjquery-ui-f6372bd7eac41ae2c022ef510ec414d016e820ed.tar.gz
jquery-ui-f6372bd7eac41ae2c022ef510ec414d016e820ed.zip
Merge branch 'master' into selectmenu
Diffstat (limited to 'tests/unit/selectable/selectable_events.js')
-rw-r--r--tests/unit/selectable/selectable_events.js30
1 files changed, 18 insertions, 12 deletions
diff --git a/tests/unit/selectable/selectable_events.js b/tests/unit/selectable/selectable_events.js
index 331bae146..984fd1862 100644
--- a/tests/unit/selectable/selectable_events.js
+++ b/tests/unit/selectable/selectable_events.js
@@ -1,32 +1,38 @@
/*
* selectable_events.js
*/
-(function($) {
+(function( $ ) {
module("selectable: events");
-test("start", function() {
- expect(2);
+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");
+ ok( true, "drag fired start callback" );
+ equal( this, el[0], "context of callback" );
}
});
- el.simulate("drag", 20, 20);
+ el.simulate( "drag", {
+ dx: 20,
+ dy: 20
+ });
});
-test("stop", function() {
- expect(2);
+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");
+ ok( true, "drag fired stop callback" );
+ equal( this, el[0], "context of callback" );
}
});
- el.simulate("drag", 20, 20);
+ el.simulate( "drag", {
+ dx: 20,
+ dy: 20
+ });
});
-})(jQuery);
+})( jQuery );