Is there a properly tested alternative to Select2 or Chosen?

Joseph Tura picture Joseph Tura · Mar 21, 2013 · Viewed 64.6k times · Source

I am looking for an alternative to Select2 that basically provides the same functionality, but includes proper tests.

The quest for the holy grail? The last unicorn?

Answer

brianreavis picture brianreavis · Jul 29, 2013

Selectize.js is a select2 alternative I've been working on that has a suite of tests using a combination of testem, syn, mocha, and chai. Right now there are the following classes of tests:

  • Interaction
    Functional tests that makes sure the control behaves as if the user is using it (using syn).
  • Setup
    Ensures the control can be initialized properly from existing <select> and <input> elements.
  • API
    Tests core API methods for proper functionality.
  • Events
    Ensures built-in events get fired at the right times with the proper arguments.
  • XSS
    Tests a handful of potential exploits.

With that said, the tests aren't as expansive as I want them to be, but it's getting there :)