Fix common tests, and add back in undocumented, but necessary array position format

This commit is contained in:
Mike Sherov 2013-01-01 21:59:18 -05:00
parent 6484103175
commit abb847191e
2 changed files with 4 additions and 10 deletions

View File

@ -27,18 +27,11 @@ TestHelpers.commonWidgetTests( "draggable", {
snapTolerance: 20,
stack: false,
zIndex: false,
cancel: null
cancel: null,
// // methods
// destroy: null,
// disable: null,
// enable: null,
// option: null,
// widget: null,
// // callbacks
// callbacks
// beforeStart: null,
// create: null,
create: null
// drag: null,
// start: null,
// stop: null

View File

@ -266,6 +266,7 @@ test( "{ cursorAt: left, top }", function() {
deltaY = -3,
tests = {
"{ left: -5, top: -5 }": { x: -5, y: -5, cursorAt : { left: -5, top: -5 } },
"[ 10, 20 ]": { x: 10, y: 20, cursorAt : [ 10, 20 ] },
"{ left: 20, top: 40 }": { x: 20, y: 40, cursorAt : { left: 20, top: 40 } },
"{ right: 10, bottom: 20 }": { x: 10, y: 20, cursorAt : { right: 10, bottom: 20 } }
};