Adding support for containment

fixed GitHub Actions / Grunt based tests with Node.js 14.x
This commit is contained in:
Frank Glück 2022-08-25 09:36:08 +02:00 committed by GitHub
parent a5751c6567
commit 6c6705238f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -571,8 +571,8 @@ QUnit.test( "Open followed by close during show effect", function( assert ) {
QUnit.test( "Dialog can't break out containment", function( assert ) { QUnit.test( "Dialog can't break out containment", function( assert ) {
assert.expect( 1 ); assert.expect( 1 );
var box = $( '<div id="xxx"></div>' ).css( { var box = $( '<div></div>' ).css( {
height: '500px',border: '0px', margin:'0px', width:'500px', position: 'absolute', bottom: '0px', right: '0px', left: '50px', top: '50px' height: "500px", border: "0px", margin: "0px", width: "500px", position: "absolute", bottom: "0px", right: "0px", left: "50px", top: "50px"
} ).appendTo( "body" ), } ).appendTo( "body" ),
element = $( "<div>X</div>" ).dialog( { containment: box, position: { at: "left top", of: box } } ), // open on left top corner element = $( "<div>X</div>" ).dialog( { containment: box, position: { at: "left top", of: box } } ), // open on left top corner
dlg = element.dialog( "widget" ), dlg = element.dialog( "widget" ),