Skip to content

Commit 6c67052

Browse files
authored
Adding support for containment
fixed GitHub Actions / Grunt based tests with Node.js 14.x
1 parent a5751c6 commit 6c67052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/dialog/options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ QUnit.test( "Open followed by close during show effect", function( assert ) {
571571

572572
QUnit.test( "Dialog can't break out containment", function( assert ) {
573573
assert.expect( 1 );
574-
var box = $( '<div id="xxx"></div>' ).css( {
575-
height: '500px',border: '0px', margin:'0px', width:'500px', position: 'absolute', bottom: '0px', right: '0px', left: '50px', top: '50px'
574+
var box = $( '<div></div>' ).css( {
575+
height: "500px", border: "0px", margin: "0px", width: "500px", position: "absolute", bottom: "0px", right: "0px", left: "50px", top: "50px"
576576
} ).appendTo( "body" ),
577577
element = $( "<div>X</div>" ).dialog( { containment: box, position: { at: "left top", of: box } } ), // open on left top corner
578578
dlg = element.dialog( "widget" ),

0 commit comments

Comments
 (0)