From 9daf681478418a2f5d3a3a9864facd4838dfb69f Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Fri, 20 Jan 2017 20:27:14 -0500 Subject: [PATCH] Fix test to retrieve the proper item instead of it's parent --- js/tests/unit/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {