From: Paul Bakaus Date: Fri, 23 May 2008 13:32:32 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 1.5.1~329 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=63091e2c980047176b65639bf8f497c1a54aca56;p=jquery-ui.git --- diff --git a/ui/tests/draggable.html b/ui/tests/draggable.html new file mode 100644 index 000000000..629252358 --- /dev/null +++ b/ui/tests/draggable.html @@ -0,0 +1,29 @@ + + + + + +Draggable Test Page + + + + + + + + + + + +

jQuery Test Suite

+ +

+ +
+
I'm a draggable.
+
+ +
    + + + diff --git a/ui/tests/draggable.js b/ui/tests/draggable.js new file mode 100644 index 000000000..f4b17b1ff --- /dev/null +++ b/ui/tests/draggable.js @@ -0,0 +1,19 @@ +$.fn.triggerKeydown = function(keyCode) { + return this.trigger("keydown", [$.event.fix({event:"keydown", keyCode: keyCode, target: this[0]})]); +}; + + +$(document).ready(function() { + + $("#draggable1").draggable(); + + module("draggable: simple drag & drop"); + + test("simple drag", function() { + + expect(1); + ok(true, "Drag and drop element on the same position"); + + }); + +}); \ No newline at end of file