Upgrades QUnit to 1.23.1
This was required for us to get assert.async() support within tests, as well as assert.expect() support. This was required because we need them for multiple async tests that are coming.
This commit is contained in:
parent
99c248cc34
commit
a75482fd30
@ -12,6 +12,7 @@
|
|||||||
"expect": false,
|
"expect": false,
|
||||||
"MockContainer": false,
|
"MockContainer": false,
|
||||||
"module": false,
|
"module": false,
|
||||||
|
"QUnit": false,
|
||||||
"require": false,
|
"require": false,
|
||||||
"test": false,
|
"test": false,
|
||||||
"window": false
|
"window": false
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="vendor/qunit-1.14.0.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>
|
<div id="qunit-fixture"></div>
|
||||||
|
|
||||||
<script src="vendor/qunit-1.14.0.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>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="vendor/qunit-1.14.0.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>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="vendor/qunit-1.14.0.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>
|
||||||
|
|
||||||
|
2288
tests/vendor/qunit-1.14.0.js
vendored
2288
tests/vendor/qunit-1.14.0.js
vendored
File diff suppressed because it is too large
Load Diff
@ -1,27 +1,27 @@
|
|||||||
/*!
|
/*!
|
||||||
* QUnit 1.14.0
|
* QUnit 1.23.1
|
||||||
* http://qunitjs.com/
|
* https://qunitjs.com/
|
||||||
*
|
*
|
||||||
* Copyright 2013 jQuery Foundation and other contributors
|
* Copyright jQuery Foundation and other contributors
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* https://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2014-01-31T16:40Z
|
* Date: 2016-04-12T17:29Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Font Family and Sizes */
|
/** Font Family and Sizes */
|
||||||
|
|
||||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
|
||||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||||
#qunit-tests { font-size: smaller; }
|
#qunit-tests { font-size: smaller; }
|
||||||
|
|
||||||
|
|
||||||
/** Resets */
|
/** Resets */
|
||||||
|
|
||||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@ -62,14 +62,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#qunit-testrunner-toolbar {
|
#qunit-testrunner-toolbar {
|
||||||
padding: 0.5em 0 0.5em 2em;
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
color: #5E740B;
|
color: #5E740B;
|
||||||
background-color: #EEE;
|
background-color: #EEE;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qunit-filteredTest {
|
||||||
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
|
background-color: #F4FF77;
|
||||||
|
color: #366097;
|
||||||
|
}
|
||||||
|
|
||||||
#qunit-userAgent {
|
#qunit-userAgent {
|
||||||
padding: 0.5em 0 0.5em 2.5em;
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
background-color: #2B81AF;
|
background-color: #2B81AF;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
||||||
@ -77,6 +83,18 @@
|
|||||||
|
|
||||||
#qunit-modulefilter-container {
|
#qunit-modulefilter-container {
|
||||||
float: right;
|
float: right;
|
||||||
|
padding: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qunit-url-config {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qunit-filter {
|
||||||
|
display: block;
|
||||||
|
float: right;
|
||||||
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tests: Pass/Fail */
|
/** Tests: Pass/Fail */
|
||||||
@ -86,24 +104,55 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#qunit-tests li {
|
#qunit-tests li {
|
||||||
padding: 0.4em 0.5em 0.4em 2.5em;
|
padding: 0.4em 1em 0.4em 1em;
|
||||||
border-bottom: 1px solid #FFF;
|
border-bottom: 1px solid #FFF;
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
#qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running {
|
#qunit-tests > li {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qunit-tests li.running,
|
||||||
|
#qunit-tests li.pass,
|
||||||
|
#qunit-tests li.fail,
|
||||||
|
#qunit-tests li.skipped {
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qunit-tests.hidepass {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qunit-tests.hidepass li.running,
|
||||||
|
#qunit-tests.hidepass li.pass {
|
||||||
|
visibility: hidden;
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#qunit-tests li strong {
|
#qunit-tests li strong {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qunit-tests li.skipped strong {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
#qunit-tests li a {
|
#qunit-tests li a {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
color: #C2CCD1;
|
color: #C2CCD1;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#qunit-tests li p a {
|
||||||
|
padding: 0.25em;
|
||||||
|
color: #6B6464;
|
||||||
|
}
|
||||||
#qunit-tests li a:hover,
|
#qunit-tests li a:hover,
|
||||||
#qunit-tests li a:focus {
|
#qunit-tests li a:focus {
|
||||||
color: #000;
|
color: #000;
|
||||||
@ -123,6 +172,10 @@
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.qunit-source {
|
||||||
|
margin: 0.6em 0 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
.qunit-collapsed {
|
.qunit-collapsed {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -211,11 +264,26 @@
|
|||||||
|
|
||||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
||||||
|
|
||||||
|
/*** Skipped tests */
|
||||||
|
|
||||||
|
#qunit-tests .skipped {
|
||||||
|
background-color: #EBECE9;
|
||||||
|
}
|
||||||
|
|
||||||
|
#qunit-tests .qunit-skipped-label {
|
||||||
|
background-color: #F4FF77;
|
||||||
|
display: inline-block;
|
||||||
|
font-style: normal;
|
||||||
|
color: #366097;
|
||||||
|
line-height: 1.8em;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
margin: -0.4em 0.4em -0.4em 0;
|
||||||
|
}
|
||||||
|
|
||||||
/** Result */
|
/** Result */
|
||||||
|
|
||||||
#qunit-testresult {
|
#qunit-testresult {
|
||||||
padding: 0.5em 0.5em 0.5em 2.5em;
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
|
|
||||||
color: #2B81AF;
|
color: #2B81AF;
|
||||||
background-color: #D2E0E6;
|
background-color: #D2E0E6;
|
4334
tests/vendor/qunit-1.23.1.js
vendored
Normal file
4334
tests/vendor/qunit-1.23.1.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user