jquery-ui-multiselect-widget icon indicating copy to clipboard operation
jquery-ui-multiselect-widget copied to clipboard

i18n Unit Tests

Open SteveTheTechie opened this issue 8 years ago • 0 comments

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:

  1. Save current widget options.
  2. Use $.getScript() to load the appropriate i18n code snippet which will change the options. Tag the
  3. Create a multiselect.
  4. Test for correct option change.
  5. Destroy the multiselect, remove the i18n code snippet from the DOM and restore the widget options.

SteveTheTechie avatar Feb 26 '18 00:02 SteveTheTechie