Update options.js

This commit is contained in:
Frank Glück 2022-01-10 11:25:48 +01:00 committed by GitHub
parent a38631fbe5
commit a5751c6567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 );
} ); } );
} ); } );