]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
tests: various fix in Dropdown tests
authorNicolas Coden <nicolas@ncoden.fr>
Tue, 6 Mar 2018 22:58:46 +0000 (23:58 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 6 Mar 2018 22:58:46 +0000 (23:58 +0100)
commita67ffe6f2eaa07934d4be7e283da78b0f0017a62
treeb164f53662f7e78741bbe531281f25960c115ed8
parentf0c68ec3a321962f7a5b4c2fbaf58cbd3f4a7ee9
tests: various fix in Dropdown tests

Changes:
* split tests about `open()` or mouse events
* tests triggered events instead of method calling for mouse events
* add missing `done()` when test is asynchronous
* rely on options passed to plugin instead of in the HTML
* test the Id of the focused element instead of the whole HTML (it can change)
* improve various tests names
test/javascript/components/dropdown.js