jquery-ui-multiselect-widget
jquery-ui-multiselect-widget copied to clipboard
i18n Unit Tests
I'm submitting a ...
- bug report
- [x] feature request
- question
If you are requesting a new or changed feature, please provide a rationale
A couple of i18n unit tests may be helpful as part of the QUnit test suite. The i18n code snippets all work essentially the same, so I would suggest picking one or two (one regular widget, one filter widget i18n) to use for the tests. My suggested approach:
- Save current widget options.
- Use $.getScript() to load the appropriate i18n code snippet which will change the options. Tag the
- Create a multiselect.
- Test for correct option change.
- Destroy the multiselect, remove the i18n code snippet from the DOM and restore the widget options.