From: Pierre-Denis Vanduynslager Date: Sat, 21 Jan 2017 01:27:14 +0000 (-0500) Subject: Fix test to retrieve the proper item instead of it's parent X-Git-Tag: v4.0.0-beta~166^2~96^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9daf681478418a2f5d3a3a9864facd4838dfb69f;p=thirdparty%2Fbootstrap.git Fix test to retrieve the proper item instead of it's parent --- diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js index 69428b6101..fc418f5211 100644 --- a/js/tests/unit/dropdown.js +++ b/js/tests/unit/dropdown.js @@ -451,7 +451,7 @@ $(function () { $dropdown.trigger($.Event('keydown', { which: 40 })) $dropdown.trigger($.Event('keydown', { which: 40 })) - assert.ok(!$(document.activeElement).parent().is('.disabled'), '.disabled is not focused') + assert.ok(!$(document.activeElement).is('.disabled'), '.disabled is not focused') }) QUnit.test('should not close the dropdown if the user clicks on a text field', function (assert) {