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,
|
snapTolerance: 20,
|
||||||
stack: false,
|
stack: false,
|
||||||
zIndex: false,
|
zIndex: false,
|
||||||
cancel: null
|
cancel: null,
|
||||||
|
|
||||||
// // methods
|
// callbacks
|
||||||
// destroy: null,
|
|
||||||
// disable: null,
|
|
||||||
// enable: null,
|
|
||||||
// option: null,
|
|
||||||
// widget: null,
|
|
||||||
|
|
||||||
// // callbacks
|
|
||||||
// beforeStart: null,
|
// beforeStart: null,
|
||||||
// create: null,
|
create: null
|
||||||
// drag: null,
|
// drag: null,
|
||||||
// start: null,
|
// start: null,
|
||||||
// stop: null
|
// stop: null
|
||||||
|
@ -266,6 +266,7 @@ test( "{ cursorAt: left, top }", function() {
|
|||||||
deltaY = -3,
|
deltaY = -3,
|
||||||
tests = {
|
tests = {
|
||||||
"{ left: -5, top: -5 }": { x: -5, y: -5, cursorAt : { left: -5, top: -5 } },
|
"{ 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 } },
|
"{ 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 } }
|
"{ right: 10, bottom: 20 }": { x: 10, y: 20, cursorAt : { right: 10, bottom: 20 } }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user