diff --git a/tests/unit/dialog/options.js b/tests/unit/dialog/options.js index b76a57b34..280e9ebce 100644 --- a/tests/unit/dialog/options.js +++ b/tests/unit/dialog/options.js @@ -578,14 +578,13 @@ QUnit.test( "Dialog can't break out containment", function( assert ) { dlg = element.dialog( "widget" ), offsetAfter, expected = box.offset(); - - 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 ); -} ); - + + 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 ); + } ); } );