PHP Classes

File: public/asset/vendor/select2/tests/results/a11y-tests.js

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/select2/tests/results/a11y-tests.js   Download  
File: public/asset/vendor/select2/tests/results/a11y-tests.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 649 bytes
 

Contents

Class file image Download
module('Results - Accessibility'); var $ = require('jquery'); var Options = require('select2/options'); var Results = require('select2/results'); test('role of results should be a listbox', function (assert) { var results = new Results($('<select></select>'), new Options({})); var $results = results.render(); assert.equal($results.attr('role'), 'listbox'); }); test('multiple select should have aria-multiselectable', function (assert) { var results = new Results($('<select></select>'), new Options({ multiple: true })); var $results = results.render(); assert.equal($results.attr('aria-multiselectable'), 'true'); });