mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fix common tests, and add back in undocumented, but necessary array position format
This commit is contained in:
parent
6484103175
commit
abb847191e
@ -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
|
||||
|
@ -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 } }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user