Skip to content
Permalink
Browse files

Dialog tests: Fixed calls to $.contains() that were passing jQuery ob…

…jects instead of elements.
  • Loading branch information...
scottgonzalez committed Jul 13, 2012
1 parent 5eb1aee commit b073cda1a5939e79bba1e27df77b7f77d4b29abf
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/dialog/dialog_tickets.js
@@ -10,7 +10,7 @@ asyncTest( "#3123: Prevent tabbing out of modal dialogs", function() {

var el = $( "<div><input id='t3123-first'><input id='t3123-last'></div>" ).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" );

0 comments on commit b073cda

Please sign in to comment.
You can’t perform that action at this time.