aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Denis Vanduynslager <[email protected]>2017-01-20 20:27:14 -0500
committerPierre-Denis Vanduynslager <[email protected]>2017-01-20 20:27:14 -0500
commit9daf681478418a2f5d3a3a9864facd4838dfb69f (patch)
treed31ef77f7fa0722e8307513aae3848ccc1f1bf55
parent8da2815e47704b84610b65fecbbd29527c5abce6 (diff)
downloadbootstrap-9daf681478418a2f5d3a3a9864facd4838dfb69f.tar.xz
bootstrap-9daf681478418a2f5d3a3a9864facd4838dfb69f.zip
Fix test to retrieve the proper item instead of it's parent
-rw-r--r--js/tests/unit/dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index 69428b610..fc418f521 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) {