From a5751c6567fd68f17ffd6fd56cc135b96273be81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Gl=C3=BCck?= Date: Mon, 10 Jan 2022 11:25:48 +0100 Subject: [PATCH] Update options.js --- tests/unit/dialog/options.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 ); + } ); } );