imported the whole jquery-ui package, refreshed with 1.10.2
[unfold.git] / third-party / jquery-ui-1.10.2 / tests / unit / sortable / sortable_test_helpers.js
diff --git a/third-party/jquery-ui-1.10.2/tests/unit/sortable/sortable_test_helpers.js b/third-party/jquery-ui-1.10.2/tests/unit/sortable/sortable_test_helpers.js
new file mode 100644 (file)
index 0000000..12e4829
--- /dev/null
@@ -0,0 +1,9 @@
+TestHelpers.sortable = {
+       sort: function( handle, dx, dy, index, msg ) {
+               $( handle ).simulate( "drag", {
+                       dx: dx,
+                       dy: dy
+               });
+               equal( $( handle ).parent().children().index( handle ), index, msg );
+       }
+};
\ No newline at end of file