-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start running tests against jQuery 2.x
We were only running tests against jQuery 1.x before and they were all passing. This was a problem because apparently all of the data-* attribute tests fail in jQuery 2.x. We are now running both the integration and unit tests against both jQuery 1.x and jQuery 2.x. Right now this resulted in a complete duplication of the test files because there wasn't an obvious way to run the tests against both versions. We're going to look into removing this duplication in the future once the current issues are fixed. We are also going to look into testing against jQuery 3.x in the future, since that is also a supported line of jQuery.
- Loading branch information
1 parent
9f8b6ff
commit 8f965ae
Showing
5 changed files
with
9,932 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!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-2.2.4.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> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<!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 class="event-container"> | ||
<select></select> | ||
</div> | ||
|
||
<select class="single"> | ||
<option>One</option> | ||
</select> | ||
|
||
<select class="single-empty"></select> | ||
|
||
<select class="single-with-placeholder"> | ||
<option>placeholder</option> | ||
<option>One</option> | ||
</select> | ||
|
||
<select class="multiple" multiple="multiple"> | ||
<option>One</option> | ||
<option>Two</option> | ||
</select> | ||
|
||
<select class="groups"> | ||
<optgroup label="Test"> | ||
<option value="one">One</option> | ||
<option value="two">Two</option> | ||
</optgroup> | ||
<optgroup label="Empty"></optgroup> | ||
</select> | ||
|
||
<select class="duplicates"> | ||
<option value="one">One</option> | ||
<option value="two">Two</option> | ||
<option value="one">Uno</option> | ||
</select> | ||
|
||
<select class="duplicates-multi" multiple="multiple"> | ||
<option value="one">One</option> | ||
<option value="two">Two</option> | ||
<option value="one">Uno</option> | ||
</select> | ||
|
||
<select class="user-defined"></select> | ||
</div> | ||
|
||
<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="../dist/js/select2.full.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/search-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/inputData-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/tokenizer-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/minimumInputLength-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/selectOnClose-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/data-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/width-tests.js" type="text/javascript"></script> | ||
|
||
<script src="results/focusing-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/multiple-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/single-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/escapeMarkup-tests.js" type="text/javascript"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.