From 63091e2c980047176b65639bf8f497c1a54aca56 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Fri, 23 May 2008 13:32:32 +0000 Subject: [PATCH] --- ui/tests/draggable.html | 29 +++++++++++++++++++++++++++++ ui/tests/draggable.js | 19 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 ui/tests/draggable.html create mode 100644 ui/tests/draggable.js 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