diff options
| author | Pierre-Denis Vanduynslager <[email protected]> | 2017-01-20 23:22:50 -0500 |
|---|---|---|
| committer | Pierre-Denis Vanduynslager <[email protected]> | 2017-01-20 23:22:50 -0500 |
| commit | ef2181ff4d53b9196828fae3ed8b62b493b4f937 (patch) | |
| tree | 3c02060754d2c39f4f134b7f6bb7490948465b38 /js | |
| parent | 4448ca057b4a4e76155bc77aa96aebb6f332fdd7 (diff) | |
| download | bootstrap-ef2181ff4d53b9196828fae3ed8b62b493b4f937.tar.xz bootstrap-ef2181ff4d53b9196828fae3ed8b62b493b4f937.zip | |
Harmonize document.activeElement comparison
Diffstat (limited to 'js')
| -rw-r--r-- | js/tests/unit/dropdown.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js index fc1bf9931..5afa2ee03 100644 --- a/js/tests/unit/dropdown.js +++ b/js/tests/unit/dropdown.js @@ -532,13 +532,13 @@ $(function () { .on('shown.bs.dropdown', function () { assert.ok(true, 'shown was fired') $dropdown.trigger($.Event('keydown', { which: 40 })) - assert.ok($(document.activeElement)[0] === $('#item1')[0], 'item1 is focused') + assert.ok($(document.activeElement).is($('#item1')), 'item1 is focused') $(document.activeElement).trigger($.Event('keydown', { which: 40 })) - assert.ok($(document.activeElement)[0] === $('#item2')[0], 'item2 is focused') + assert.ok($(document.activeElement).is($('#item2')), 'item2 is focused') $(document.activeElement).trigger($.Event('keydown', { which: 38 })) - assert.ok($(document.activeElement)[0] === $('#item1')[0], 'item1 is focused') + assert.ok($(document.activeElement).is($('#item1')), 'item1 is focused') done() }) $dropdown.trigger('click') |
