aboutsummaryrefslogtreecommitdiffstats
path: root/tests/draggable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-21 13:54:41 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-21 13:54:41 +0000
commit9196c2022c428d5aa2b75e2558f981458356e9da (patch)
tree0f7c072f547779381f679e0dcd88910b1b43fbfd /tests/draggable.js
parent2361bda9bae169c92fb05abc935b834cbb119919 (diff)
downloadjquery-ui-9196c2022c428d5aa2b75e2558f981458356e9da.tar.gz
jquery-ui-9196c2022c428d5aa2b75e2558f981458356e9da.zip
tests dialog - added some tests and placeholders
Diffstat (limited to 'tests/draggable.js')
-rw-r--r--tests/draggable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/draggable.js b/tests/draggable.js
index 064ec074c..fe22cdcfb 100644
--- a/tests/draggable.js
+++ b/tests/draggable.js
@@ -21,7 +21,7 @@ var drag = function(handle, dx, dy) {
var moved = function (dx, dy, msg) {
msg = msg ? msg + "." : "";
var actual = { left: offsetAfter.left, top: offsetAfter.top };
- var expected = { left: offsetBefore.left + dx, top: offsetAfter.top };
+ var expected = { left: offsetBefore.left + dx, top: offsetBefore.top + dy };
compare2(actual, expected, 'dragged[' + dragged.dx + ', ' + dragged.dy + '] ' + msg);
}