b43656c13c
This adds basic tests to ensure that the selection is accessible by all users. This checks for common attributes, ensuring that the container is always keyboard accessible and follows ARIA guidelines. This also changes the base selection to create a common element so we don't need to repeat attributes and such across multiple selection containers.
40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="../vendor/qunit-1.14.0.css" type="text/css" />
|
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="qunit"></div>
|
|
<div id="qunit-fixture">
|
|
<select class="single" title="This is an example title">
|
|
<option value="default">Default</option>
|
|
<option value="1">One</option>
|
|
<option>2</option>
|
|
</select>
|
|
|
|
<select class="multiple" multiple="multiple" title="One more example title">
|
|
<option value="default">Default</option>
|
|
<option value="1">One</option>
|
|
<option>2</option>
|
|
</select>
|
|
|
|
<select class="groups">
|
|
<optgroup label="Test">
|
|
<option value="one">One</option>
|
|
<option value="two">Two</option>
|
|
</optgroup>
|
|
<optgroup label="Empty"></optgroup>
|
|
</select>
|
|
</div>
|
|
|
|
<script src="../vendor/qunit-1.14.0.js" type="text/javascript"></script>
|
|
<script src="../../vendor/almond-0.2.9.js" type="text/javascript"></script>
|
|
<script src="../../vendor/jquery-2.1.0.js" type="text/javascript"></script>
|
|
<script src="../../dist/js/select2.amd.js" type="text/javascript"></script>
|
|
<script src="../mock.js" type="text/javascript"></script>
|
|
|
|
<script src="selection-tests.js" type="text/javascript"></script>
|
|
</body>
|
|
</html>
|