From: Scott González Date: Fri, 13 Jul 2012 19:52:32 +0000 (-0400) Subject: Dialog tests: Fixed calls to $.contains() that were passing jQuery objects instead... X-Git-Tag: 1.9.0-rc.1~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b073cda1a5939e79bba1e27df77b7f77d4b29abf;p=jquery-ui.git Dialog tests: Fixed calls to $.contains() that were passing jQuery objects instead of elements. --- diff --git a/tests/unit/dialog/dialog_tickets.js b/tests/unit/dialog/dialog_tickets.js index 201ea3a87..5c3277c2f 100644 --- a/tests/unit/dialog/dialog_tickets.js +++ b/tests/unit/dialog/dialog_tickets.js @@ -10,7 +10,7 @@ asyncTest( "#3123: Prevent tabbing out of modal dialogs", function() { var el = $( "
" ).dialog({ modal: true }), inputs = el.find( "input" ), - widget = el.dialog( "widget" ); + widget = el.dialog( "widget" )[ 0 ]; function checkTab() { ok( $.contains( widget, document.activeElement ), "Tab key event moved focus within the modal" );