Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update options.js
adding cleaning up
  • Loading branch information
fglueck authored Dec 7, 2021
commit dd037477d4b4fe41f6acd2d5dd1c4c48255228cd
6 changes: 5 additions & 1 deletion tests/unit/dialog/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,13 @@ QUnit.test( "Dialog can't break out containment", function( assert ) {
offsetAfter,
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
assert.deepEqual( offsetAfter, expected, "compare offset" );
setTimeout( function() {
element.dialog( "close" );
box.remove();
}, 100 );
} );

} );