No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

a11y-tests.js 649B

12345678910111213141516171819202122232425
  1. module('Results - Accessibility');
  2. var $ = require('jquery');
  3. var Options = require('select2/options');
  4. var Results = require('select2/results');
  5. test('role of results should be a listbox', function (assert) {
  6. var results = new Results($('<select></select>'), new Options({}));
  7. var $results = results.render();
  8. assert.equal($results.attr('role'), 'listbox');
  9. });
  10. test('multiple select should have aria-multiselectable', function (assert) {
  11. var results = new Results($('<select></select>'), new Options({
  12. multiple: true
  13. }));
  14. var $results = results.render();
  15. assert.equal($results.attr('aria-multiselectable'), 'true');
  16. });