1
0
mirror of synced 2024-11-23 21:36:09 +03:00
select2/tests/vendor
Kevin Brown 9491e1aae2
Test against jQuery 3.4.1 (#5531)
* Update tests to be compatible with jQuery 3.0.0

There was a change in jQuery 3 that ensures that the return value of `.val()` on a multiple select is always an array. This is a breaking change from previous versions, where `null` or `undefined` were returned in these scenarios. Because we cannot `assert.equal` on a list of possible values, these assertions were switched to `assert.ok` which should be good enough.

* Properly strip out units in positioning tests

Before we were assuming that there were no units, and only were we stripping them out if we were expecting 3 digits. Now we just strip out all non-digit characters, so that should do the job and get us what we want.

There was a change in jQuery 3.2.0 that caused the units to be returned in these specific calls. They were not previously being returned, so this was not actually an issue.

* Add automated testing against jQuery 3.4.1

No tests appear to be currently failing.
2019-06-25 22:05:15 -04:00
..
jquery-1.7.2.js Tests use jQuery 1.7.2 2015-03-11 19:20:41 -04:00
jquery-2.2.4.js Restore compatibility with data-* attributes in jQuery 2.x (#5486) 2019-04-27 22:20:56 -04:00
jquery-3.4.1.js Test against jQuery 3.4.1 (#5531) 2019-06-25 22:05:15 -04:00
qunit-1.23.1.css Upgrades QUnit to 1.23.1 2016-05-23 23:25:13 -04:00
qunit-1.23.1.js Upgrades QUnit to 1.23.1 2016-05-23 23:25:13 -04:00