Skip to content

Commit dd03747

Browse files
authored
Update options.js
adding cleaning up
1 parent 6df435a commit dd03747

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/dialog/options.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,13 @@ QUnit.test( "Dialog can't break out containment", function( assert ) {
579579
offsetAfter,
580580
expected = box.offset();
581581

582-
testHelper.drag( element, '.ui-dialog-titlebar', -200, -200); // try to move out
582+
testHelper.drag( element, '.ui-dialog-titlebar', -200, -200); // try to move out
583583
offsetAfter = dlg.offset(); // should be the same
584584
assert.deepEqual( offsetAfter, expected, "compare offset" );
585+
setTimeout( function() {
586+
element.dialog( "close" );
587+
box.remove();
588+
}, 100 );
585589
} );
586590

587591
} );

0 commit comments

Comments
 (0)