Skip to content

Commit b073cda

Browse files
committed
Dialog tests: Fixed calls to $.contains() that were passing jQuery objects instead of elements.
1 parent 5eb1aee commit b073cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/dialog/dialog_tickets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ asyncTest( "#3123: Prevent tabbing out of modal dialogs", function() {
1010

1111
var el = $( "<div><input id='t3123-first'><input id='t3123-last'></div>" ).dialog({ modal: true }),
1212
inputs = el.find( "input" ),
13-
widget = el.dialog( "widget" );
13+
widget = el.dialog( "widget" )[ 0 ];
1414

1515
function checkTab() {
1616
ok( $.contains( widget, document.activeElement ), "Tab key event moved focus within the modal" );

0 commit comments

Comments
 (0)