aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/checkboxradio/events.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-05-16 08:36:55 +0200
committerGitHub <noreply@github.com>2020-05-16 08:36:55 +0200
commitf4ef03e57edd7e51cb134e902679c7bddc3daaee (patch)
tree9b58bc5746bb4b6e173337b71c86be2cabd31ea6 /tests/unit/checkboxradio/events.js
parentb36d54256968b028a9c324eba6d88754561d5ec4 (diff)
downloadjquery-ui-f4ef03e57edd7e51cb134e902679c7bddc3daaee.tar.gz
jquery-ui-f4ef03e57edd7e51cb134e902679c7bddc3daaee.zip
All: Resolve most jQuery Migrate warnings
Closes gh-1919
Diffstat (limited to 'tests/unit/checkboxradio/events.js')
-rw-r--r--tests/unit/checkboxradio/events.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/checkboxradio/events.js b/tests/unit/checkboxradio/events.js
index 9e391897f..96580c791 100644
--- a/tests/unit/checkboxradio/events.js
+++ b/tests/unit/checkboxradio/events.js
@@ -35,7 +35,7 @@ QUnit.test( "Checkbox shows focus when using keyboard navigation", function( ass
var check = $( "#check" ).checkboxradio(),
label = $( "label[for='check']" );
assert.lacksClasses( label, "ui-state-focus" );
- check.focus();
+ check.trigger( "focus" );
setTimeout( function() {
assert.hasClasses( label, "ui-state-focus" );
ready();