Convert source and tests to unix newlines
This commit is contained in:
parent
1b5a962819
commit
bbd320d75e
96
src/js/select2/i18n/sq.js
vendored
96
src/js/select2/i18n/sq.js
vendored
@ -1,48 +1,48 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
// Albanian
|
// Albanian
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'Rezultatet nuk mund të ngarkoheshin.';
|
return 'Rezultatet nuk mund të ngarkoheshin.';
|
||||||
},
|
},
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
|
||||||
var message = 'Të lutem fshi ' + overChars + ' karakter';
|
var message = 'Të lutem fshi ' + overChars + ' karakter';
|
||||||
|
|
||||||
if (overChars != 1) {
|
if (overChars != 1) {
|
||||||
message += 'e';
|
message += 'e';
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
inputTooShort: function (args) {
|
inputTooShort: function (args) {
|
||||||
var remainingChars = args.minimum - args.input.length;
|
var remainingChars = args.minimum - args.input.length;
|
||||||
|
|
||||||
var message = 'Të lutem shkruaj ' + remainingChars +
|
var message = 'Të lutem shkruaj ' + remainingChars +
|
||||||
' ose më shumë karaktere';
|
' ose më shumë karaktere';
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
loadingMore: function () {
|
loadingMore: function () {
|
||||||
return 'Duke ngarkuar më shumë rezultate…';
|
return 'Duke ngarkuar më shumë rezultate…';
|
||||||
},
|
},
|
||||||
maximumSelected: function (args) {
|
maximumSelected: function (args) {
|
||||||
var message = 'Mund të zgjedhësh vetëm ' + args.maximum + ' element';
|
var message = 'Mund të zgjedhësh vetëm ' + args.maximum + ' element';
|
||||||
|
|
||||||
if (args.maximum != 1) {
|
if (args.maximum != 1) {
|
||||||
message += 'e';
|
message += 'e';
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
},
|
},
|
||||||
noResults: function () {
|
noResults: function () {
|
||||||
return 'Nuk u gjet asnjë rezultat';
|
return 'Nuk u gjet asnjë rezultat';
|
||||||
},
|
},
|
||||||
searching: function () {
|
searching: function () {
|
||||||
return 'Duke kërkuar…';
|
return 'Duke kërkuar…';
|
||||||
},
|
},
|
||||||
removeAllItems: function () {
|
removeAllItems: function () {
|
||||||
return 'Hiq të gjitha sendet';
|
return 'Hiq të gjitha sendet';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -1,126 +1,126 @@
|
|||||||
module('Results - Infinite scrolling');
|
module('Results - Infinite scrolling');
|
||||||
|
|
||||||
test('loadingMore is triggered even without a scrollbar', function (assert) {
|
test('loadingMore is triggered even without a scrollbar', function (assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
|
|
||||||
var $select = $('<select></select>');
|
var $select = $('<select></select>');
|
||||||
|
|
||||||
var $container = $('<span></span>');
|
var $container = $('<span></span>');
|
||||||
var container = new MockContainer();
|
var container = new MockContainer();
|
||||||
|
|
||||||
var Utils = require('select2/utils');
|
var Utils = require('select2/utils');
|
||||||
var Options = require('select2/options');
|
var Options = require('select2/options');
|
||||||
|
|
||||||
var Results = require('select2/results');
|
var Results = require('select2/results');
|
||||||
var InfiniteScroll = require('select2/dropdown/infiniteScroll');
|
var InfiniteScroll = require('select2/dropdown/infiniteScroll');
|
||||||
|
|
||||||
var InfiniteScrollResults = Utils.Decorate(Results, InfiniteScroll);
|
var InfiniteScrollResults = Utils.Decorate(Results, InfiniteScroll);
|
||||||
|
|
||||||
var results = new InfiniteScrollResults($select, new Options({}));
|
var results = new InfiniteScrollResults($select, new Options({}));
|
||||||
|
|
||||||
// Fake the data adapter for the `setClasses` method
|
// Fake the data adapter for the `setClasses` method
|
||||||
results.data = {};
|
results.data = {};
|
||||||
results.data.current = function (callback) {
|
results.data.current = function (callback) {
|
||||||
callback([{ id: 'test' }]);
|
callback([{ id: 'test' }]);
|
||||||
};
|
};
|
||||||
|
|
||||||
$('#qunit-fixture').append(results.render());
|
$('#qunit-fixture').append(results.render());
|
||||||
|
|
||||||
results.bind(container, $container);
|
results.bind(container, $container);
|
||||||
|
|
||||||
results.on('query:append', function () {
|
results.on('query:append', function () {
|
||||||
assert.ok(true, 'It tried to load more immediately');
|
assert.ok(true, 'It tried to load more immediately');
|
||||||
});
|
});
|
||||||
|
|
||||||
container.trigger('results:all', {
|
container.trigger('results:all', {
|
||||||
data: {
|
data: {
|
||||||
results: [
|
results: [
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
more: true
|
more: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('loadingMore is not triggered without scrolling', function (assert) {
|
test('loadingMore is not triggered without scrolling', function (assert) {
|
||||||
assert.expect(0);
|
assert.expect(0);
|
||||||
|
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
|
|
||||||
var $select = $('<select></select>');
|
var $select = $('<select></select>');
|
||||||
|
|
||||||
var $container = $('<span></span>');
|
var $container = $('<span></span>');
|
||||||
var container = new MockContainer();
|
var container = new MockContainer();
|
||||||
|
|
||||||
var Utils = require('select2/utils');
|
var Utils = require('select2/utils');
|
||||||
var Options = require('select2/options');
|
var Options = require('select2/options');
|
||||||
|
|
||||||
var Results = require('select2/results');
|
var Results = require('select2/results');
|
||||||
var InfiniteScroll = require('select2/dropdown/infiniteScroll');
|
var InfiniteScroll = require('select2/dropdown/infiniteScroll');
|
||||||
|
|
||||||
var InfiniteScrollResults = Utils.Decorate(Results, InfiniteScroll);
|
var InfiniteScrollResults = Utils.Decorate(Results, InfiniteScroll);
|
||||||
|
|
||||||
var results = new InfiniteScrollResults($select, new Options({}));
|
var results = new InfiniteScrollResults($select, new Options({}));
|
||||||
|
|
||||||
// Fake the data adapter for the `setClasses` method
|
// Fake the data adapter for the `setClasses` method
|
||||||
results.data = {};
|
results.data = {};
|
||||||
results.data.current = function (callback) {
|
results.data.current = function (callback) {
|
||||||
callback([{ id: 'test' }]);
|
callback([{ id: 'test' }]);
|
||||||
};
|
};
|
||||||
|
|
||||||
var $results = results.render();
|
var $results = results.render();
|
||||||
|
|
||||||
$('#qunit-fixture').append($results);
|
$('#qunit-fixture').append($results);
|
||||||
$results.css('max-height', '100px');
|
$results.css('max-height', '100px');
|
||||||
|
|
||||||
results.bind(container, $container);
|
results.bind(container, $container);
|
||||||
|
|
||||||
results.on('query:append', function () {
|
results.on('query:append', function () {
|
||||||
assert.ok(false, 'It tried to load more immediately');
|
assert.ok(false, 'It tried to load more immediately');
|
||||||
});
|
});
|
||||||
|
|
||||||
container.trigger('results:all', {
|
container.trigger('results:all', {
|
||||||
data: {
|
data: {
|
||||||
results: [
|
results: [
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'Test'
|
text: 'Test'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
pagination: {
|
pagination: {
|
||||||
more: true
|
more: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,63 +1,63 @@
|
|||||||
module('Results - option');
|
module('Results - option');
|
||||||
|
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
|
|
||||||
var Options = require('select2/options');
|
var Options = require('select2/options');
|
||||||
|
|
||||||
var Results = require('select2/results');
|
var Results = require('select2/results');
|
||||||
|
|
||||||
test('disabled property on option is respected - enabled', function (assert) {
|
test('disabled property on option is respected - enabled', function (assert) {
|
||||||
var results = new Results($('<select></select>'), new Options({}));
|
var results = new Results($('<select></select>'), new Options({}));
|
||||||
|
|
||||||
var $option = $('<option></option>');
|
var $option = $('<option></option>');
|
||||||
var option = results.option({
|
var option = results.option({
|
||||||
element: $option[0]
|
element: $option[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.notEqual(option.getAttribute('aria-disabled'), 'true');
|
assert.notEqual(option.getAttribute('aria-disabled'), 'true');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('disabled property on option is respected - disabled', function (assert) {
|
test('disabled property on option is respected - disabled', function (assert) {
|
||||||
var results = new Results($('<select></select>'), new Options({}));
|
var results = new Results($('<select></select>'), new Options({}));
|
||||||
|
|
||||||
var $option = $('<option disabled></option>');
|
var $option = $('<option disabled></option>');
|
||||||
var option = results.option({
|
var option = results.option({
|
||||||
element: $option[0]
|
element: $option[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('disabled property on enabled optgroup is respected', function (assert) {
|
test('disabled property on enabled optgroup is respected', function (assert) {
|
||||||
var results = new Results($('<select></select>'), new Options({}));
|
var results = new Results($('<select></select>'), new Options({}));
|
||||||
|
|
||||||
var $option = $('<optgroup></optgroup>');
|
var $option = $('<optgroup></optgroup>');
|
||||||
var option = results.option({
|
var option = results.option({
|
||||||
element: $option[0]
|
element: $option[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.notEqual(option.getAttribute('aria-disabled'), 'true');
|
assert.notEqual(option.getAttribute('aria-disabled'), 'true');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('disabled property on disabled optgroup is respected', function (assert) {
|
test('disabled property on disabled optgroup is respected', function (assert) {
|
||||||
var results = new Results($('<select></select>'), new Options({}));
|
var results = new Results($('<select></select>'), new Options({}));
|
||||||
|
|
||||||
var $option = $('<optgroup disabled></optgroup>');
|
var $option = $('<optgroup disabled></optgroup>');
|
||||||
var option = results.option({
|
var option = results.option({
|
||||||
element: $option[0]
|
element: $option[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('option in disabled optgroup is disabled', function (assert) {
|
test('option in disabled optgroup is disabled', function (assert) {
|
||||||
var results = new Results($('<select></select>'), new Options({}));
|
var results = new Results($('<select></select>'), new Options({}));
|
||||||
|
|
||||||
var $option = $('<optgroup disabled><option></option></optgroup>')
|
var $option = $('<optgroup disabled><option></option></optgroup>')
|
||||||
.find('option');
|
.find('option');
|
||||||
var option = results.option({
|
var option = results.option({
|
||||||
element: $option[0]
|
element: $option[0]
|
||||||
});
|
});
|
||||||
|
|
||||||
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
assert.equal(option.getAttribute('aria-disabled'), 'true');
|
||||||
});
|
});
|
@ -1,41 +1,41 @@
|
|||||||
module('Selection containers - Managing focus');
|
module('Selection containers - Managing focus');
|
||||||
|
|
||||||
var SingleSelection = require('select2/selection/single');
|
var SingleSelection = require('select2/selection/single');
|
||||||
|
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
var Options = require('select2/options');
|
var Options = require('select2/options');
|
||||||
|
|
||||||
var options = new Options({});
|
var options = new Options({});
|
||||||
|
|
||||||
test('close sets the focus to the selection', function (assert) {
|
test('close sets the focus to the selection', function (assert) {
|
||||||
var $container = $('#qunit-fixture .event-container');
|
var $container = $('#qunit-fixture .event-container');
|
||||||
var container = new MockContainer();
|
var container = new MockContainer();
|
||||||
var selection = new SingleSelection(
|
var selection = new SingleSelection(
|
||||||
$('#qunit-fixture .single'),
|
$('#qunit-fixture .single'),
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
var $selection = selection.render();
|
var $selection = selection.render();
|
||||||
selection.bind(container, $container);
|
selection.bind(container, $container);
|
||||||
|
|
||||||
selection.update([{
|
selection.update([{
|
||||||
id: 'test',
|
id: 'test',
|
||||||
text: 'test'
|
text: 'test'
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
$container.append($selection);
|
$container.append($selection);
|
||||||
|
|
||||||
assert.notEqual(
|
assert.notEqual(
|
||||||
document.activeElement,
|
document.activeElement,
|
||||||
$selection[0],
|
$selection[0],
|
||||||
'The selection had focus originally'
|
'The selection had focus originally'
|
||||||
);
|
);
|
||||||
|
|
||||||
container.trigger('close');
|
container.trigger('close');
|
||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
document.activeElement,
|
document.activeElement,
|
||||||
$selection[0],
|
$selection[0],
|
||||||
'After close, focus must be set to selection'
|
'After close, focus must be set to selection'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -1,100 +1,100 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="qunit"></div>
|
<div id="qunit"></div>
|
||||||
<div id="qunit-fixture">
|
<div id="qunit-fixture">
|
||||||
<div class="event-container">
|
<div class="event-container">
|
||||||
<select></select>
|
<select></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<select class="single">
|
<select class="single">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="single-empty"></select>
|
<select class="single-empty"></select>
|
||||||
|
|
||||||
<select class="single-with-placeholder">
|
<select class="single-with-placeholder">
|
||||||
<option>placeholder</option>
|
<option>placeholder</option>
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="multiple" multiple="multiple">
|
<select class="multiple" multiple="multiple">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
<option>Two</option>
|
<option>Two</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="groups">
|
<select class="groups">
|
||||||
<optgroup label="Test">
|
<optgroup label="Test">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Empty"></optgroup>
|
<optgroup label="Empty"></optgroup>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates">
|
<select class="duplicates">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates-multi" multiple="multiple">
|
<select class="duplicates-multi" multiple="multiple">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="user-defined"></select>
|
<select class="user-defined"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
||||||
<script src="vendor/jquery-1.7.2.js" type="text/javascript"></script>
|
<script src="vendor/jquery-1.7.2.js" type="text/javascript"></script>
|
||||||
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="helpers.js" type="text/javascript"></script>
|
<script src="helpers.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
||||||
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/array-tests.js" type="text/javascript"></script>
|
<script src="data/array-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/base-tests.js" type="text/javascript"></script>
|
<script src="data/base-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/select-tests.js" type="text/javascript"></script>
|
<script src="data/select-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tags-tests.js" type="text/javascript"></script>
|
<script src="data/tags-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/data-tests.js" type="text/javascript"></script>
|
<script src="options/data-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/translation-tests.js" type="text/javascript"></script>
|
<script src="options/translation-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/width-tests.js" type="text/javascript"></script>
|
<script src="options/width-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/option-tests.js" type="text/javascript"></script>
|
<script src="results/option-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/search-tests.js" type="text/javascript"></script>
|
<script src="selection/search-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/single-tests.js" type="text/javascript"></script>
|
<script src="selection/single-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
||||||
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,100 +1,100 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="qunit"></div>
|
<div id="qunit"></div>
|
||||||
<div id="qunit-fixture">
|
<div id="qunit-fixture">
|
||||||
<div class="event-container">
|
<div class="event-container">
|
||||||
<select></select>
|
<select></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<select class="single">
|
<select class="single">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="single-empty"></select>
|
<select class="single-empty"></select>
|
||||||
|
|
||||||
<select class="single-with-placeholder">
|
<select class="single-with-placeholder">
|
||||||
<option>placeholder</option>
|
<option>placeholder</option>
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="multiple" multiple="multiple">
|
<select class="multiple" multiple="multiple">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
<option>Two</option>
|
<option>Two</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="groups">
|
<select class="groups">
|
||||||
<optgroup label="Test">
|
<optgroup label="Test">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Empty"></optgroup>
|
<optgroup label="Empty"></optgroup>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates">
|
<select class="duplicates">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates-multi" multiple="multiple">
|
<select class="duplicates-multi" multiple="multiple">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="user-defined"></select>
|
<select class="user-defined"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
||||||
<script src="vendor/jquery-2.2.4.js" type="text/javascript"></script>
|
<script src="vendor/jquery-2.2.4.js" type="text/javascript"></script>
|
||||||
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="helpers.js" type="text/javascript"></script>
|
<script src="helpers.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
||||||
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/array-tests.js" type="text/javascript"></script>
|
<script src="data/array-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/base-tests.js" type="text/javascript"></script>
|
<script src="data/base-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/select-tests.js" type="text/javascript"></script>
|
<script src="data/select-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tags-tests.js" type="text/javascript"></script>
|
<script src="data/tags-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/data-tests.js" type="text/javascript"></script>
|
<script src="options/data-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/translation-tests.js" type="text/javascript"></script>
|
<script src="options/translation-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/width-tests.js" type="text/javascript"></script>
|
<script src="options/width-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/option-tests.js" type="text/javascript"></script>
|
<script src="results/option-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/search-tests.js" type="text/javascript"></script>
|
<script src="selection/search-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/single-tests.js" type="text/javascript"></script>
|
<script src="selection/single-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
||||||
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,100 +1,100 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
<link rel="stylesheet" href="vendor/qunit-1.23.1.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
<link rel="stylesheet" href="../../dist/css/select2.css" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="qunit"></div>
|
<div id="qunit"></div>
|
||||||
<div id="qunit-fixture">
|
<div id="qunit-fixture">
|
||||||
<div class="event-container">
|
<div class="event-container">
|
||||||
<select></select>
|
<select></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<select class="single">
|
<select class="single">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="single-empty"></select>
|
<select class="single-empty"></select>
|
||||||
|
|
||||||
<select class="single-with-placeholder">
|
<select class="single-with-placeholder">
|
||||||
<option>placeholder</option>
|
<option>placeholder</option>
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="multiple" multiple="multiple">
|
<select class="multiple" multiple="multiple">
|
||||||
<option>One</option>
|
<option>One</option>
|
||||||
<option>Two</option>
|
<option>Two</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="groups">
|
<select class="groups">
|
||||||
<optgroup label="Test">
|
<optgroup label="Test">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="Empty"></optgroup>
|
<optgroup label="Empty"></optgroup>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates">
|
<select class="duplicates">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="duplicates-multi" multiple="multiple">
|
<select class="duplicates-multi" multiple="multiple">
|
||||||
<option value="one">One</option>
|
<option value="one">One</option>
|
||||||
<option value="two">Two</option>
|
<option value="two">Two</option>
|
||||||
<option value="one">Uno</option>
|
<option value="one">Uno</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select class="user-defined"></select>
|
<select class="user-defined"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
<script src="vendor/qunit-1.23.1.js" type="text/javascript"></script>
|
||||||
<script src="vendor/jquery-3.4.1.js" type="text/javascript"></script>
|
<script src="vendor/jquery-3.4.1.js" type="text/javascript"></script>
|
||||||
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
<script src="../dist/js/select2.full.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="helpers.js" type="text/javascript"></script>
|
<script src="helpers.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
<script src="a11y/selection-tests.js" type="text/javascript"></script>
|
||||||
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
<script src="a11y/search-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/array-tests.js" type="text/javascript"></script>
|
<script src="data/array-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/base-tests.js" type="text/javascript"></script>
|
<script src="data/base-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
<script src="data/inputData-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/select-tests.js" type="text/javascript"></script>
|
<script src="data/select-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tags-tests.js" type="text/javascript"></script>
|
<script src="data/tags-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
<script src="data/tokenizer-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumInputLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
<script src="data/maximumSelectionLength-tests.js" type="text/javascript"></script>
|
||||||
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
<script src="data/minimumInputLength-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
<script src="dropdown/dropdownCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
<script src="dropdown/positioning-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
<script src="dropdown/selectOnClose-tests.js" type="text/javascript"></script>
|
||||||
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="dropdown/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
<script src="options/ajax-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/data-tests.js" type="text/javascript"></script>
|
<script src="options/data-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
<script src="options/deprecated-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/translation-tests.js" type="text/javascript"></script>
|
<script src="options/translation-tests.js" type="text/javascript"></script>
|
||||||
<script src="options/width-tests.js" type="text/javascript"></script>
|
<script src="options/width-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
<script src="results/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
<script src="results/infiniteScroll-tests.js" type="text/javascript"></script>
|
||||||
<script src="results/option-tests.js" type="text/javascript"></script>
|
<script src="results/option-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
<script src="selection/allowClear-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
<script src="selection/containerCss-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
<script src="selection/focusing-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
<script src="selection/multiple-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
<script src="selection/placeholder-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/search-tests.js" type="text/javascript"></script>
|
<script src="selection/search-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/single-tests.js" type="text/javascript"></script>
|
<script src="selection/single-tests.js" type="text/javascript"></script>
|
||||||
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
<script src="selection/stopPropagation-tests.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
<script src="utils/decorator-tests.js" type="text/javascript"></script>
|
||||||
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
<script src="utils/escapeMarkup-tests.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user