9491e1aae2
* 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.
22 lines
818 B
HTML
22 lines
818 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="vendor/qunit-1.23.1.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"></div>
|
|
|
|
<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="../dist/js/select2.full.js" type="text/javascript"></script>
|
|
|
|
<script src="helpers.js" type="text/javascript"></script>
|
|
|
|
<script src="integration/dom-changes.js" type="text/javascript"></script>
|
|
<script src="integration/jquery-calls.js" type="text/javascript"></script>
|
|
<script src="integration/select2-methods.js" type="text/javascript"></script>
|
|
</body>
|
|
</html>
|