mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Update options.js
This commit is contained in:
parent
a38631fbe5
commit
a5751c6567
@ -578,14 +578,13 @@ QUnit.test( "Dialog can't break out containment", function( assert ) {
|
|||||||
dlg = element.dialog( "widget" ),
|
dlg = element.dialog( "widget" ),
|
||||||
offsetAfter,
|
offsetAfter,
|
||||||
expected = box.offset();
|
expected = box.offset();
|
||||||
|
|
||||||
testHelper.drag( element, ".ui-dialog-titlebar", -200, -200 ); // try to move out
|
testHelper.drag( element, ".ui-dialog-titlebar", -200, -200 ); // try to move out
|
||||||
offsetAfter = dlg.offset(); // should be the same
|
offsetAfter = dlg.offset(); // should be the same
|
||||||
assert.deepEqual( offsetAfter, expected, "compare offset" );
|
assert.deepEqual( offsetAfter, expected, "compare offset" );
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
element.dialog( "close" );
|
element.dialog( "close" );
|
||||||
box.remove();
|
box.remove();
|
||||||
}, 100 );
|
}, 100 );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user